mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 15:14:36 +02:00
* Pass 'key' object to actions & submit form events
This commit is contained in:
parent
08bebb560d
commit
6d49e5e55f
5 changed files with 56 additions and 14 deletions
|
@ -254,9 +254,9 @@ View.prototype.onKeyPress = function(ch, key) {
|
|||
assert(this.specialKeyMap, 'No special key map defined');
|
||||
|
||||
if(this.isKeyMapped('accept', key.name)) {
|
||||
this.emit('action', 'accept');
|
||||
this.emit('action', 'accept', key);
|
||||
} else if(this.isKeyMapped('next', key.name)) {
|
||||
this.emit('action', 'next');
|
||||
this.emit('action', 'next', key);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue