Prevent default on keypress in textfield-dsl, like plain textfield does

This commit is contained in:
Tony Garnock-Jones 2016-08-07 17:50:05 -04:00
parent 183f104ade
commit 7f785008c8
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ function spawnGui() {
}
}
on message globalEvent("#inputRow", "+keypress", $event) {
on message globalEvent("#inputRow", "keypress", $event) {
var character = String.fromCharCode(event.charCode);
if (event.charCode && character) {
:: fieldCommand(["insert", character]);