diff options
author | Andy Shaw <andy.shaw@digia.com> | 2015-03-10 22:47:52 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@digia.com> | 2015-03-13 12:03:37 +0000 |
commit | aa645caec178767e57da25f2a4566e1212c12b35 (patch) | |
tree | a5e794dfd2781f9992aa17b35c582b298a02e59e /src/plugins/platforms/windows/qwindowsinputcontext.h | |
parent | 51ec7ebfe5f45d1c0a03d992e97053cac66e25fe (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.h | 1 |
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); |