Support numpad keys in keybinds.
This commit is contained in:
parent
614d3a3e40
commit
4d6aa859ac
@ -215,6 +215,8 @@ Keybinds =
|
|||||||
else
|
else
|
||||||
if 48 <= kc <= 57 or 65 <= kc <= 90 # 0-9, A-Z
|
if 48 <= kc <= 57 or 65 <= kc <= 90 # 0-9, A-Z
|
||||||
String.fromCharCode(kc).toLowerCase()
|
String.fromCharCode(kc).toLowerCase()
|
||||||
|
else if 96 <= kc <= 105 # numpad 0-9
|
||||||
|
String.fromCharCode(kc - 48).toLowerCase()
|
||||||
else
|
else
|
||||||
null
|
null
|
||||||
if key
|
if key
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user