Support numpad keys in keybinds.

This commit is contained in:
ccd0 2015-06-20 21:01:21 -07:00
parent 614d3a3e40
commit 4d6aa859ac

View File

@ -215,6 +215,8 @@ Keybinds =
else
if 48 <= kc <= 57 or 65 <= kc <= 90 # 0-9, A-Z
String.fromCharCode(kc).toLowerCase()
else if 96 <= kc <= 105 # numpad 0-9
String.fromCharCode(kc - 48).toLowerCase()
else
null
if key