Commit 6029f81e authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

Fixed special shortcut handling for codeeditor. refs #2187

parent e89c6923
......@@ -81,6 +81,9 @@ define(["jquery", "emitter", "./action", "require"], function($, Emitter, CodeEd
// store all original ace commands
self.originalAceCommands = $.extend(true, {}, self.ace.commands.commands);
// now apply custom shortuts
self.applyShortcuts();
// trigger loading of state again since we can handle it now
self.view.emit("stateChange", "path");
......
......@@ -82,6 +82,9 @@ define([
this.commandLine = new CommandLine(this);
this.updateInfo = new UpdateInfo(this);
// trigger inital shortcut setup manually since we needed editor ready
this._applyShortcuts();
// set default state
this.setupState({
path: undefined,
......@@ -133,6 +136,8 @@ define([
},
_applyShortcuts: function _applyShortcuts() {
if (!this.editor) return;
_applyShortcuts._super.call(this);
this.editor.applyShortcuts();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment