* Some SyncTERM / EtherTerm key support for new key system

* Break long words for word wrap if required
* Lots of cursor movement improvements for MultiLineEditText2
* Code cleanup
This commit is contained in:
Bryan Ashby 2015-06-06 00:33:59 -06:00
parent f2a61828aa
commit feab2e0233
6 changed files with 99 additions and 197 deletions

View file

@ -40,9 +40,6 @@ function ViewController(options) {
// Process key presses treating form submit mapped
// keys special. Everything else is forwarded on to
// the focused View, if any. //
console.log('ch=' + ch + ' / ' + JSON.stringify(key));
if(key) {
var submitViewId = self.submitKeyMap[key.name];
if(submitViewId) {
@ -57,32 +54,6 @@ function ViewController(options) {
}
};
/*
this.clientKeyPressHandler = function(key, isSpecial) {
if(isSpecial) {
return;
}
if(self.focusedView && self.focusedView.acceptsInput) {
key = 'string' === typeof key ? key : key.toString();
self.focusedView.onKeyPress(key, isSpecial);
}
};
this.clientSpecialKeyHandler = function(keyName) {
var submitViewId = self.submitKeyMap[keyName];
if(submitViewId) {
self.switchFocus(submitViewId);
self.submitForm();
} else {
if(self.focusedView && self.focusedView.acceptsInput) {
self.focusedView.onSpecialKeyPress(keyName);
}
}
};
*/
this.viewActionListener = function(action) {
switch(action) {
case 'next' :