mirror of
https://github.com/slap-editor/slap.git
synced 2024-09-11 12:58:30 +03:00
refactor(insertMode): move keybinding for insert mode to editor-widget
This commit is contained in:
parent
557c0d9971
commit
f5fa982ecb
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user