diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-07-16 16:14:16 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-10-02 16:53:43 +0200 |
commit | f779609a9be63d70b895ba6f0d769e91b5321a2e (patch) | |
tree | 69ddb0ccff5e529101d60682118bb5cf593732cf /desktop | |
parent | f51d4014de0d2da352ac1773c6464933c4bac836 (diff) |
Ensure that 'input' events are processed asynchronously too.
Change-Id: I715eadd444e428148cfff8a61436987517004fae
Reviewed-on: https://gerrit.libreoffice.org/79882
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 3b8e7eb128c7..6a43d56c0296 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3044,19 +3044,7 @@ static void doc_postWindowExtTextInputEvent(LibreOfficeKitDocument* pThis, unsig return; } - switch (nType) - { - case LOK_EXT_TEXTINPUT: - pWindow->PostExtTextInputEvent(VclEventId::ExtTextInput, - OUString::fromUtf8(OString(pText, strlen(pText)))); - break; - case LOK_EXT_TEXTINPUT_END: - pWindow->PostExtTextInputEvent(VclEventId::EndExtTextInput, - OUString::fromUtf8(OString(pText, strlen(pText)))); - break; - default: - assert(false && "Unhandled External Text input event!"); - } + SfxLokHelper::postExtTextEventAsync(pWindow, nType, OUString::fromUtf8(OString(pText, strlen(pText)))); } static void doc_removeTextContext(LibreOfficeKitDocument* pThis, unsigned nLOKWindowId, int nCharBefore, int nCharAfter) |