mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +00:00
[NTVDM]
Push scancodes on to the BIOS keyboard queue even if they're not ASCII. svn path=/branches/ntvdm/; revision=60764
This commit is contained in:
parent
f5d3c9254c
commit
8800ea89d1
|
@ -1115,11 +1115,15 @@ VOID BiosHandleIrq(BYTE IrqNumber, LPWORD Stack)
|
|||
BiosKeyboardMap[VirtualKey] |= (1 << 7);
|
||||
|
||||
/* Find out which character this is */
|
||||
if (ToAscii(VirtualKey, ScanCode, BiosKeyboardMap, &Character, 0) > 0)
|
||||
if (ToAscii(VirtualKey, ScanCode, BiosKeyboardMap, &Character, 0) == 0)
|
||||
{
|
||||
/* Push it onto the BIOS keyboard queue */
|
||||
BiosKbdBufferPush((ScanCode << 8) | (Character & 0xFF));
|
||||
/* Not ASCII */
|
||||
Character = 0;
|
||||
}
|
||||
|
||||
/* Push it onto the BIOS keyboard queue */
|
||||
BiosKbdBufferPush((ScanCode << 8) | (Character & 0xFF));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue