From b0e83eec4760debcae5d917ddf1922047c4723b8 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Tue, 24 Dec 2013 16:22:52 +0000 Subject: [PATCH] Console library: now '-' and '+' keypad keys work also when numlock is off. git-svn-id: svn://kolibrios.org@4402 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/console/console.asm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/programs/develop/libraries/console/console.asm b/programs/develop/libraries/console/console.asm index 4d98ac5c30..6a8ae55d2b 100644 --- a/programs/develop/libraries/console/console.asm +++ b/programs/develop/libraries/console/console.asm @@ -1867,6 +1867,10 @@ con.key: cmp al, 0x46 jz con.msg_loop mov edx, eax + cmp dl, 0x4e + je .numpad + cmp dl, 0x4a + je .numpad push 66 pop eax push 3 @@ -1887,6 +1891,7 @@ con.key: jb .no_numlock cmp dl, 83 ja .no_numlock + .numpad: mov dh, [con.extended_numlock+edx-71] xchg dl, dh jmp .gotcode