diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-03 12:29:28 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-07 09:18:17 +0200 |
commit | 7297feb6bcc89c55d1768794754f3b7d796c4c75 (patch) | |
tree | 4ace51a4630ff12dfef2cb406a45bd9b4fea7640 /include/vcl | |
parent | ae4f4b7192f909eb8304dcd9c644796cb3af83f8 (diff) |
LOK: reimplement lok::Document::postKeyEvent()
Instead of posting an event to the main loop of the soffice thread, do
what every other methods do: take the solar mutex and execute the task
on the thread. This fixes random lost/delayed key events on Android.
Change-Id: Ibe819282b5f3bb64e44d4b6f0a92611fe651bb39
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/ITiledRenderable.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx index a10e44884756..5cac9b63a0c9 100644 --- a/include/vcl/ITiledRenderable.hxx +++ b/include/vcl/ITiledRenderable.hxx @@ -101,6 +101,13 @@ public: virtual void registerCallback(LibreOfficeKitCallback pCallback, void* pData) = 0; /** + * Posts a keyboard event on the document. + * + * @see lok::Document::postKeyEvent(). + */ + virtual void postKeyEvent(int nType, int nCharCode, int nKeyCode) = 0; + + /** * Posts a mouse event on the document. * * @see lok::Document::postMouseEvent(). |