Author: dchapyshev
Date: Sat Aug  6 17:43:57 2016
New Revision: 72142

URL: http://svn.reactos.org/svn/reactos?rev=72142&view=rev
Log:
[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

Modified:
    trunk/reactos/win32ss/user/ntuser/keyboard.c

Modified: trunk/reactos/win32ss/user/ntuser/keyboard.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/keyboard.c?rev=72142&r1=72141&r2=72142&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/keyboard.c        [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/keyboard.c        [iso-8859-1] Sat Aug  6 
17:43:57 2016
@@ -922,6 +922,22 @@
            }
         }
 
+        // 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)
         {


Reply via email to