summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-12 13:18:47 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-16 13:18:27 +0100
commitfca89aea12874d382f500b81f9aaef4e232ced65 (patch)
tree44809c3e56c230b6d75b818db83a72b3010a8319 /desktop
parent08d711171b5c5a8bbc80c3ebb9470bcf4058f113 (diff)
LOK: add LibreOfficeKitKeyEventType enumeration
Change-Id: I3d422670323cd982251569c4226dc46803d4f6a1
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index c3eedf5b98d7..14c18601f8a2 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -657,10 +657,15 @@ static void lo_postKeyEvent(LibreOfficeKit* /*pThis*/, int nType, int nCode)
if (SalFrame *pFocus = SvpSalFrame::GetFocusFrame())
{
KeyEvent aEvent(nCode, nCode, 0);
- if (nType == 0)
+ switch (nType)
+ {
+ case LOK_KEYEVENT_KEYINPUT:
Application::PostKeyEvent(VCLEVENT_WINDOW_KEYINPUT, pFocus->GetWindow(), &aEvent);
- else
+ break;
+ case LOK_KEYEVENT_KEYUP:
Application::PostKeyEvent(VCLEVENT_WINDOW_KEYUP, pFocus->GetWindow(), &aEvent);
+ break;
+ }
}
#endif
}