diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-27 15:38:30 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-02 08:51:01 +0100 |
commit | 6650fe947d41bc43cb05b572acb50180799d5b91 (patch) | |
tree | 13e0efb096f8aa410a4db57cdd162960b42c92e8 /android/Bootstrap | |
parent | 645bebd9f6090b1c617bd95ea990a7dac4afaabc (diff) |
LOK: move Office::postKeyEvent to Document
The implementation still sends them to the currently active VCL frame,
not to the given document, though.
Change-Id: I6fa2decdea3f949c55287e802cb3373c85664207
Diffstat (limited to 'android/Bootstrap')
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/kit/Document.java | 8 | ||||
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/kit/Office.java | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java b/android/Bootstrap/src/org/libreoffice/kit/Document.java index f410693a799d..c692099a4dee 100644 --- a/android/Bootstrap/src/org/libreoffice/kit/Document.java +++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java @@ -107,6 +107,14 @@ public class Document { public native void initializeForRendering(); /** + * Post a key event to LibreOffice. + * @param type - type of key event + * @param charCode - the Unicode character generated by this event or 0. + * @param keyCode - the integer code representing the key of the event (non-zero for control keys). + */ + public native void postKeyEvent(int type, int charCode, int keyCode); + + /** * Post a mouse event to LOK * @param type - mouse event type * @param x - x coordinate diff --git a/android/Bootstrap/src/org/libreoffice/kit/Office.java b/android/Bootstrap/src/org/libreoffice/kit/Office.java index 8bd780b7cce4..86eda5cf6873 100644 --- a/android/Bootstrap/src/org/libreoffice/kit/Office.java +++ b/android/Bootstrap/src/org/libreoffice/kit/Office.java @@ -34,14 +34,6 @@ public class Office { return document; } - /** - * Post a key event to LibreOffice. - * @param type - type of key event - * @param charCode - the Unicode character generated by this event or 0. - * @param keyCode - the integer code representing the key of the event (non-zero for control keys). - */ - public native void postKeyEvent(int type, int charCode, int keyCode); - public native void destroy(); public native void destroyAndExit(); } |