From d5f0b3d725f678c1a7eb4b8b4ab3a2279742260c Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 22 Feb 2018 17:40:35 +0530 Subject: 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 Tested-by: Andras Timar --- sc/source/ui/unoobj/docuno.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index f415a7b5cd4c..b6cbc5e46fac 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -623,10 +623,10 @@ void ScModelObj::postKeyEvent(int nType, int nCharCode, int nKeyCode) 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); -- cgit