Rename QtWindows::KeyboardLayoutChangeEven -> InputLanguageChangeEvent
We react to WM_INPUTLANGCHANGE, and handle it by calling handleInputLanguageChanged on the input context. As input language is not the same as keyboard layout (a keyboard layout might change without the input language changing), let's be accurate about what's happening. Change-Id: I8914994a8d46485179741e010d0da5135b023668 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Andrey Butirsky <butirsky@gmail.com>
This commit is contained in:
parent
a126d3627c
commit
c0d1029e8e
@ -119,7 +119,7 @@ enum WindowsEventType // Simplify event types
|
||||
NonClientPointerEvent = NonClientEventFlag + PointerEventFlag + 4,
|
||||
KeyEvent = KeyEventFlag + 1,
|
||||
KeyDownEvent = KeyEventFlag + KeyDownEventFlag + 1,
|
||||
KeyboardLayoutChangeEvent = KeyEventFlag + 2,
|
||||
InputLanguageChangeEvent = KeyEventFlag + 2,
|
||||
InputMethodKeyEvent = InputMethodEventFlag + KeyEventFlag + 1,
|
||||
InputMethodKeyDownEvent = InputMethodEventFlag + KeyEventFlag + KeyDownEventFlag + 1,
|
||||
ClipboardEvent = ClipboardEventFlag + 1,
|
||||
@ -230,7 +230,7 @@ inline QtWindows::WindowsEventType windowsEventType(UINT message, WPARAM wParamI
|
||||
return QtWindows::InputMethodKeyDownEvent;
|
||||
#ifdef WM_INPUTLANGCHANGE
|
||||
case WM_INPUTLANGCHANGE:
|
||||
return QtWindows::KeyboardLayoutChangeEvent;
|
||||
return QtWindows::InputLanguageChangeEvent;
|
||||
#endif // WM_INPUTLANGCHANGE
|
||||
case WM_TOUCH:
|
||||
return QtWindows::TouchEvent;
|
||||
|
@ -1161,7 +1161,7 @@ bool QWindowsContext::windowsProc(HWND hwnd, UINT message,
|
||||
if (wParam == DBT_DEVNODES_CHANGED)
|
||||
initTouch();
|
||||
break;
|
||||
case QtWindows::KeyboardLayoutChangeEvent:
|
||||
case QtWindows::InputLanguageChangeEvent:
|
||||
if (QWindowsInputContext *wic = windowsInputContext())
|
||||
wic->handleInputLanguageChanged(wParam, lParam);
|
||||
Q_FALLTHROUGH();
|
||||
|
Loading…
Reference in New Issue
Block a user