Corrects ext bit from the keyboard. This bit, once set, was never unset,

so both alt keys acted as Alt+Gr.

svn path=/trunk/; revision=6636
This commit is contained in:
Art Yerkes 2003-11-13 08:29:19 +00:00
parent 9208747968
commit 3145ec42fb

View file

@ -559,6 +559,7 @@ KeyboardHandler(PKINTERRUPT Interrupt,
if (extKey)
{
rec[KeysRead].dwControlKeyState|=ENHANCED_KEY;
extKey = 0;
}
KeysRead++;
DPRINT("KeysRequired %d KeysRead %x\n",KeysRequired,KeysRead);
@ -586,7 +587,7 @@ KeyboardHandler(PKINTERRUPT Interrupt,
// kbdBuffer[bufHead].uChar.AsciiChar=TranslateScanCode(thisKey);
kbdBuffer[bufHead].uChar.AsciiChar=VirtualToAscii(kbdBuffer[bufHead].wVirtualKeyCode,isDown);
kbdBuffer[bufHead].dwControlKeyState=ctrlKeyState;
if (extKey)
if (extKey)
kbdBuffer[bufHead].dwControlKeyState|=ENHANCED_KEY;
bufHead++;
bufHead&=KBD_WRAP_MASK; // Modulo KBD_BUFFER_SIZE