* Work on quote builder / reply

This commit is contained in:
Bryan Ashby 2015-09-13 21:15:55 -06:00
parent 88d725f585
commit 150de3953e
2 changed files with 36 additions and 2 deletions

View File

@ -563,6 +563,15 @@ function FullScreenEditorModule(options) {
);
};
this.displayQuoteBuilder = function() {
//
// Clear body area
//
self.client.term.rawWrite(
ansi.goto(self.header.height, 1) +
ansi.eraseLine(self.body.height));
};
this.observeEditorEvents = function() {
var bodyView = self.viewControllers.body.getView(1);
@ -629,7 +638,8 @@ function FullScreenEditorModule(options) {
});
},
editModeMenuQuote : function(formData, extraArgs) {
self.viewControllers.footerEditorMenu.setFocus(false);
self.displayQuoteBuilder();
},
editModeMenuHelp : function(formData, extraArgs) {
self.viewControllers.footerEditorMenu.setFocus(false);

View File

@ -540,6 +540,7 @@
"action" : "@method:editModeEscPressed" // :TODO: fixme
},
*/
// :TODO: Need similar to viewId for actionKeys for specifis, e.g. viewId + index type stuff
{
"keys" : [ "p", "shift + p" ],
"action" : "@method:prevMessage"
@ -552,6 +553,13 @@
"keys" : [ "escape", "q", "shift + q" ],
"action" : "@menu:messageArea"
},
{
keys: : [ "r", "shift + r" ],
action: @method:replyMessage
extraArgs: {
menu: messageAreaReplyPost
}
},
{
"keys" : [ "down arrow", "up arrow", "page up", "page down" ],
"action" : "@method:movementKeyPressed"
@ -626,7 +634,23 @@
viewId: 1
}
]
},
}
4: {
mci: {
HM1: {
items: [ "Save", "Discard", "Quote", "Help" ]
},
submit: {
*: [
{
value: { 1: 2 },
action: @method:editModeQuote
}
]
}
}
}
}
}
// :TODO: messageAreaSelect (change msg areas -> call @systemMethod -> fallback to menu