mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-02 07:51:52 +02:00
* Fix key press event for EditTextView
* Fix MCI draw issue for TextView * Missing bbs.js MCI init
This commit is contained in:
parent
30ba609fb4
commit
383b3b449d
3 changed files with 19 additions and 13 deletions
|
@ -45,13 +45,13 @@ EditTextView.prototype.onKeyPress = function(ch, key) {
|
|||
}
|
||||
}
|
||||
|
||||
return;
|
||||
return EditTextView.super_.prototype.onKeyPress.call(this, ch, key);
|
||||
} else if(this.isKeyMapped('clearLine', key.name)) {
|
||||
this.text = '';
|
||||
this.cursorPos.col = 0;
|
||||
this.setFocus(true); // resetting focus will redraw & adjust cursor
|
||||
|
||||
return;
|
||||
return EditTextView.super_.prototype.onKeyPress.call(this, ch, key);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue