fix
This commit is contained in:
@@ -44,9 +44,13 @@ class InputTextField extends TextField {
|
||||
untyped __js__("window.event.preventDefault()");
|
||||
switch (event.keyCode) {
|
||||
case Keyboard.BACKSPACE:
|
||||
text = text.substring(0, text.length - 1);
|
||||
text = event.ctrlKey ? "" : text.substring(0, text.length - 1);
|
||||
case x if (x >= 65 && x <= 90):
|
||||
text += String.fromCharCode(event.keyCode + (event.shiftKey ? 0 : 32));
|
||||
case x if (x >= 48 && x <= 57):
|
||||
text += String.fromCharCode(event.keyCode);
|
||||
case x if (x >= 96 && x <= 105):
|
||||
text += String.fromCharCode(event.keyCode - 48);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user