Functions 66.6, 66.7 - control input from the keyboard for hotkeys

git-svn-id: svn://kolibrios.org@2709 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79)
2012-06-01 00:58:16 +00:00
parent 896eb433ec
commit dfaeeb56ff
5 changed files with 115 additions and 23 deletions

View File

@@ -425,6 +425,17 @@ term9:
add eax, 16
cmp eax, hotkey_list+256*16
jb .loop
; get process PID
mov eax, esi
shl eax, 5
mov eax, [eax+CURRENT_TASK+TASKDATA.pid]
; compare current lock input with process PID
cmp eax, [PID_lock_input]
jne @f
xor eax, eax
mov [PID_lock_input], eax
@@:
; remove hotkeys in buffer
mov eax, hotkey_buffer
.loop2: