summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-02-22 17:40:35 +0530
committerAndras Timar <andras.timar@collabora.com>2018-02-22 13:41:08 +0100
commitd5f0b3d725f678c1a7eb4b8b4ab3a2279742260c (patch)
treeb3b91fa8ad21854b9f92261fba8e70942013b32c /sd
parent8dde1396f7c9aed30590bc7c55d3ac0e2252381f (diff)
Revert posting key events on the main thread
This partially reverts commit f2d3192e8a4ae743fcaab27ab6d829d57ae8fb60. Change-Id: Ic273e3f742d48dbfb73060a6ecb4feb80afdcfaa Reviewed-on: https://gerrit.libreoffice.org/50174 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 30971a584e49..d9ea81e4982e 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2507,13 +2507,14 @@ void SdXImpressDocument::postKeyEvent(int nType, int nCharCode, int nKeyCode)
return;
KeyEvent aEvent(nCharCode, nKeyCode, 0);
+
switch (nType)
{
case LOK_KEYEVENT_KEYINPUT:
- Application::PostKeyEvent(VCLEVENT_WINDOW_KEYINPUT, pWindow, &aEvent);
+ pWindow->KeyInput(aEvent);
break;
case LOK_KEYEVENT_KEYUP:
- Application::PostKeyEvent(VCLEVENT_WINDOW_KEYUP, pWindow, &aEvent);
+ pWindow->KeyUp(aEvent);
break;
default:
assert(false);