mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-04 08:51:51 +02:00
* 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:
parent
f2a61828aa
commit
feab2e0233
6 changed files with 99 additions and 197 deletions
|
@ -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' :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue