[NTVDM]
authorAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 5 May 2015 00:55:56 +0000 (00:55 +0000)
committerAleksandar Andrejevic <aandrejevic@reactos.org>
Tue, 5 May 2015 00:55:56 +0000 (00:55 +0000)
Send 0xE0 before each extended key scancode.

svn path=/trunk/; revision=67551

reactos/subsystems/mvdm/ntvdm/hardware/keyboard.c

index 0516fa7..9fcc9f0 100644 (file)
@@ -38,6 +38,7 @@ VOID KeyboardEventHandler(PKEY_EVENT_RECORD KeyEvent)
     /* Push the scan code into the PS/2 queue */
     for (i = 0; i < KeyEvent->wRepeatCount; i++)
     {
+        if (KeyEvent->dwControlKeyState & ENHANCED_KEY) PS2QueuePush(PS2Port, 0xE0);
         PS2QueuePush(PS2Port, ScanCode);
     }