refactor(insertMode): move keybinding for insert mode to editor-widget

This commit is contained in:
Dan Kaplun 2016-01-03 01:12:42 -05:00
parent 557c0d9971
commit f5fa982ecb
3 changed files with 1 additions and 3 deletions

View File

@ -102,7 +102,7 @@ EditorPane.prototype._initHandlers = function () {
if (!formHasFocus && visibleForms.length) visibleForms[0].focus();
});
editor.on('insertMode', function () { slap.header.render(); });
editor.on('insertMode', function () { self.screen.render(); });
['onDidChange', 'onDidChangePath'].forEach(function (prop) {
editor.textBuf[prop](function () {
slap.header.render();

View File

@ -160,7 +160,6 @@ Slap.prototype._initHandlers = function () {
pane.editor._updateContent();
});
return false;
case 'toggleInsertMode': self.toggleInsertMode(); return false;
case 'quit':
if (!self._panesBlockingQuit) {
var currentPane = self.getCurrentPane();

View File

@ -25,7 +25,6 @@ nextPane = "C-M-pagedown"
prevPane = "C-M-pageup"
togglePaneList = "C-l"
toggleFileBrowser = "f10"
toggleInsertMode = "insert"
quit = "C-q"
help = "f2"