mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-06 01:35:04 +02:00
* Fixes to actionKeys with new focus changes
* Various fixes, minor changes
This commit is contained in:
parent
b15d9a0bf8
commit
b2592d0e71
8 changed files with 63 additions and 84 deletions
|
@ -774,6 +774,7 @@
|
|||
width: 27
|
||||
argName: to
|
||||
focus: true
|
||||
text: All
|
||||
}
|
||||
"ET3" : {
|
||||
"width" : 27,
|
||||
|
@ -855,10 +856,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"actionKeys" : [ // :TODO: Need better name
|
||||
actionKeys: [ // :TODO: Need better name
|
||||
{
|
||||
"keys" : [ "escape" ],
|
||||
"action" : "@method:editModeEscPressed"
|
||||
keys: [ "escape" ]
|
||||
action: @method:editModeEscPressed
|
||||
}
|
||||
{
|
||||
keys: [ "?" ]
|
||||
action: @method:editModeMenuHelp
|
||||
}
|
||||
]
|
||||
// :TODO: something like the following for overriding keymap
|
||||
|
|
|
@ -25,17 +25,15 @@ function AreaPostFSEModule(options) {
|
|||
this.editorMode = 'edit';
|
||||
|
||||
this.menuMethods.editModeMenuSave = function(formData, extraArgs) {
|
||||
var msg = self.getMessage();
|
||||
|
||||
var msg;
|
||||
async.series(
|
||||
[
|
||||
function prepareMessage(callback) {
|
||||
if(self.isLocalEmail()) {
|
||||
msg.setLocalFromUserId(self.client.user.userId);
|
||||
msg.setLocalToUserId(self.toUserId);
|
||||
}
|
||||
|
||||
callback(null);
|
||||
function getMessageObject(callback) {
|
||||
self.getMessage(function gotMsg(err, msgObj) {
|
||||
msg = msgObj;
|
||||
callback(err);
|
||||
});
|
||||
},
|
||||
function saveMessage(callback) {
|
||||
msg.persist(function persisted(err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue