Console library: now '-' and '+' keypad keys work also when numlock is off.

git-svn-id: svn://kolibrios.org@4402 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-12-24 16:22:52 +00:00
parent 44977e8b83
commit b0e83eec47

View File

@ -1867,6 +1867,10 @@ con.key:
cmp al, 0x46 cmp al, 0x46
jz con.msg_loop jz con.msg_loop
mov edx, eax mov edx, eax
cmp dl, 0x4e
je .numpad
cmp dl, 0x4a
je .numpad
push 66 push 66
pop eax pop eax
push 3 push 3
@ -1887,6 +1891,7 @@ con.key:
jb .no_numlock jb .no_numlock
cmp dl, 83 cmp dl, 83
ja .no_numlock ja .no_numlock
.numpad:
mov dh, [con.extended_numlock+edx-71] mov dh, [con.extended_numlock+edx-71]
xchg dl, dh xchg dl, dh
jmp .gotcode jmp .gotcode