Commit a2ae7e20 authored by ThorbenQuast's avatar ThorbenQuast
Browse files

[editor] remove 'transposeletters' aka. ctrl-T shortcut (hard coded)

parent 247f10e5
......@@ -220,7 +220,9 @@ define(["jquery", "emitter", "./action", "require", "ace/ace", "ace/ext-language
this.ace.commands.removeCommands(Object.keys(this.ace.commands.commands));
// add the default commands
$.each(this.originalAceCommands, function(key, data) {
this.ace.commands.addCommand(data);
if (!(key == "transposeletters")) {
this.ace.commands.addCommand(data);
}
}.bind(this));
// overwrite with custom commands
......@@ -306,7 +308,9 @@ define(["jquery", "emitter", "./action", "require", "ace/ace", "ace/ext-language
this.ace.setOptions({
enableBasicAutocompletion: enable,
enableLiveAutocompletion: enable,
enableSnippets: enable
enableSnippets: enable,
liveAutocompletionDelay: 500,
liveAutocompletionThreshold: 3
});
},
......@@ -402,4 +406,4 @@ define(["jquery", "emitter", "./action", "require", "ace/ace", "ace/ext-language
});
return CodeEditor;
});
});
\ No newline at end of file
Markdown is supported
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