From 959f96c67528a26ab8e75ef30f52b30125d7053f Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Thu, 20 Aug 2015 16:42:04 +0000 Subject: [PATCH] VNC Viewer: fixed bug in extended scancode handler. git-svn-id: svn://kolibrios.org@5755 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/vncc/vncc.asm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/programs/network/vncc/vncc.asm b/programs/network/vncc/vncc.asm index 1ae8208508..2bc9462daa 100644 --- a/programs/network/vncc/vncc.asm +++ b/programs/network/vncc/vncc.asm @@ -262,6 +262,7 @@ key: test ah, 0x80 ; key up? jnz @f inc al + and ah, 0x7f @@: mov byte[KeyEvent.down], al @@ -293,6 +294,14 @@ key: mcall 2 shr eax, 8 jz mainloop + + xor ah, ah + test al, 0x80 ; key up? + jnz @f + inc ah + @@: + mov byte[KeyEvent.down], ah + and ax, 0x007f .no_numlock: mov ax, [keymap+eax*2] .key: