diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-17 10:33:47 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-23 10:10:22 +0100 |
commit | bfe3a47e1e5bb51b7f9440b6155d002eedcea22b (patch) | |
tree | 4abe069df6959ac50b108063d56173482c1f878d /include | |
parent | 0622d2658a8ccadadfb5eb2180a252833c3a9c22 (diff) |
lok::Office::postKeyEvent: allow different char and key code
editeng is not happy with non-zero char code for css::awt::Key::ESCAPE.
Change-Id: If26923df7defb8a47766e9109835a8569067e578
Diffstat (limited to 'include')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.h | 2 | ||||
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKit.hxx | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index ce1e63698686..c7dac9aed627 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -147,7 +147,7 @@ struct _LibreOfficeKitClass const char* pURL, const char* pOptions); #ifdef LOK_USE_UNSTABLE_API - void (*postKeyEvent) (LibreOfficeKit* pThis, int nType, int nCode); + void (*postKeyEvent) (LibreOfficeKit* pThis, int nType, int nCharCode, int nKeyCode); #endif // LOK_USE_UNSTABLE_API }; diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx index 74c8533d980d..8f1958266c01 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -173,11 +173,12 @@ public: * Posts a keyboard event to the focused frame. * * @param nType Event type, like press or release. - * @param nCode Code of the key. + * @param nCharCode contains the Unicode character generated by this event or 0 + * @param nKeyCode contains the integer code representing the key of the event (non-zero for control keys) */ - inline void postKeyEvent(int nType, int nCode) + inline void postKeyEvent(int nType, int nCharCode, int nKeyCode) { - mpThis->pClass->postKeyEvent(mpThis, nType, nCode); + mpThis->pClass->postKeyEvent(mpThis, nType, nCharCode, nKeyCode); } #endif // LOK_USE_UNSTABLE_API }; |