* Fix key press event for EditTextView

* Fix MCI draw issue for TextView
* Missing bbs.js MCI init
This commit is contained in:
Bryan Ashby 2016-08-10 23:35:17 -06:00
parent 30ba609fb4
commit 383b3b449d
3 changed files with 19 additions and 13 deletions

View file

@ -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);
}
}