- Detect Alt+Shift hotkeys and send input language change request message to window

* Switching the keyboard layout works now. The code needs to be improved

svn path=/trunk/; revision=72142
This commit is contained in:
Dmitry Chapyshev 2016-08-06 17:43:57 +00:00
parent e6597810f6
commit a32f426a76

View file

@ -922,6 +922,22 @@ ProcessKeyEvent(WORD wVk, WORD wScanCode, DWORD dwFlags, BOOL bInjected, DWORD d
}
}
// TODO: When initializing win32k: Reading from the registry hotkey combination
// to switch the keyboard layout and store it to global variable.
// Using this combination of hotkeys in this function
if (wVk == VK_LSHIFT && IS_KEY_DOWN(gafAsyncKeyState, VK_LMENU))
{
PKL pkl = pti->KeyboardLayout;
if (pkl != NULL)
{
UserPostMessage(UserHMGetHandle(Wnd),
WM_INPUTLANGCHANGEREQUEST,
INPUTLANGCHANGE_FORWARD,
(LPARAM)pkl->hkl);
}
}
/* If it is VK_PACKET, high word of wParam is used for wchar */
if (!bPacket)
{