diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-12 13:18:47 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-16 13:18:27 +0100 |
commit | fca89aea12874d382f500b81f9aaef4e232ced65 (patch) | |
tree | 44809c3e56c230b6d75b818db83a72b3010a8319 /desktop/source/lib | |
parent | 08d711171b5c5a8bbc80c3ebb9470bcf4058f113 (diff) |
LOK: add LibreOfficeKitKeyEventType enumeration
Change-Id: I3d422670323cd982251569c4226dc46803d4f6a1
Diffstat (limited to 'desktop/source/lib')
-rw-r--r-- | desktop/source/lib/init.cxx | 9 |
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 } |