summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsinputcontext.h
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2015-03-10 22:47:52 +0100
committerAndy Shaw <andy.shaw@digia.com>2015-03-13 12:03:37 +0000
commitaa645caec178767e57da25f2a4566e1212c12b35 (patch)
treea5e794dfd2781f9992aa17b35c582b298a02e59e /src/plugins/platforms/windows/qwindowsinputcontext.h
parent51ec7ebfe5f45d1c0a03d992e97053cac66e25fe (diff)
Windows: Get the normal virtual key when not composing
When there is no composing currently being done then we need to get the real virtual key rather than the one it was sent as with ImmGetVirtualKey. This ensures that any shortcut associated with the key will be fired right away. Change-Id: Id526b7030ca21eaacbd6c74774392b0707cf762a Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsinputcontext.h')
-rw-r--r--src/plugins/platforms/windows/qwindowsinputcontext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsinputcontext.h b/src/plugins/platforms/windows/qwindowsinputcontext.h
index 86243952ec..898a0e6909 100644
--- a/src/plugins/platforms/windows/qwindowsinputcontext.h
+++ b/src/plugins/platforms/windows/qwindowsinputcontext.h
@@ -73,6 +73,7 @@ public:
bool startComposition(HWND hwnd);
bool composition(HWND hwnd, LPARAM lParam);
bool endComposition(HWND hwnd);
+ inline bool isComposing() const { return m_compositionContext.isComposing; }
int reconvertString(RECONVERTSTRING *reconv);