forked from KolibriOS/kolibrios
Numpad numeric key support for console library.
git-svn-id: svn://kolibrios.org@4306 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
16f7bbae41
commit
ff750185ca
@ -1874,10 +1874,23 @@ con.key:
|
|||||||
int 0x40 ; eax = control key state
|
int 0x40 ; eax = control key state
|
||||||
test dh, dh
|
test dh, dh
|
||||||
jnz .extended
|
jnz .extended
|
||||||
|
test al, 0x80 ; numlock
|
||||||
|
jnz .numlock
|
||||||
bt [scan_has_ascii], edx
|
bt [scan_has_ascii], edx
|
||||||
jnc .extended
|
jnc .extended
|
||||||
test al, 0x30
|
test al, 0x30 ; alt
|
||||||
jnz .extended
|
jnz .extended
|
||||||
|
test al, 0x80 ; numlock
|
||||||
|
jz .no_numlock
|
||||||
|
.numlock:
|
||||||
|
cmp dl, 71
|
||||||
|
jb .no_numlock
|
||||||
|
cmp dl, 83
|
||||||
|
ja .no_numlock
|
||||||
|
mov dh, [con.extended_numlock+edx-71]
|
||||||
|
xchg dl, dh
|
||||||
|
jmp .gotcode
|
||||||
|
.no_numlock:
|
||||||
; key has ASCII code
|
; key has ASCII code
|
||||||
push eax edx
|
push eax edx
|
||||||
push 2
|
push 2
|
||||||
@ -2420,6 +2433,11 @@ con.extended_shift:
|
|||||||
db 54h,55h,56h,57h,58h,59h,5Ah,5Bh,5Ch,5Dh,00h,00h
|
db 54h,55h,56h,57h,58h,59h,5Ah,5Bh,5Ch,5Dh,00h,00h
|
||||||
db 47h,48h,49h,4Ah,4Bh,4Ch,4Dh,4Eh,4Fh,50h,51h,52h,53h,00h,00h,00h,87h,88h
|
db 47h,48h,49h,4Ah,4Bh,4Ch,4Dh,4Eh,4Fh,50h,51h,52h,53h,00h,00h,00h,87h,88h
|
||||||
times 0x80-0x59 db 0
|
times 0x80-0x59 db 0
|
||||||
|
con.extended_numlock:
|
||||||
|
db '7', '8', '9', '-'
|
||||||
|
db '4', '5', '6', '+'
|
||||||
|
db '1', '2', '3'
|
||||||
|
db '0', '.'
|
||||||
|
|
||||||
; ‚ ⥪ã饩 ॠ«¨§ 樨 § ç¥¨ï ¯® 㬮«ç ¨î â ª®¢ë.
|
; ‚ ⥪ã饩 ॠ«¨§ 樨 § ç¥¨ï ¯® 㬮«ç ¨î â ª®¢ë.
|
||||||
; ‚ ¡ã¤ã饬 ®¨, ¢®§¬®¦®, ¡ã¤ãâ áç¨âë¢ âìáï ª ª ¯ à ¬¥âàë ¨§ ini-ä ©« console.ini.
|
; ‚ ¡ã¤ã饬 ®¨, ¢®§¬®¦®, ¡ã¤ãâ áç¨âë¢ âìáï ª ª ¯ à ¬¥âàë ¨§ ini-ä ©« console.ini.
|
||||||
|
Loading…
Reference in New Issue
Block a user