diff --git a/core/fse.js b/core/fse.js index f133ca2a..32628cd4 100644 --- a/core/fse.js +++ b/core/fse.js @@ -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); diff --git a/mods/menu.hjson b/mods/menu.hjson index 3d21ed5b..7cbc323b 100644 --- a/mods/menu.hjson +++ b/mods/menu.hjson @@ -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