mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
[WIN32K]
- 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:
parent
e6597810f6
commit
a32f426a76
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue