Commit d88035e5 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Editor: move command setup to the beginning of init

parent 96db85b6
......@@ -171,6 +171,10 @@ function Editor (doNotLoadStorage, storage) {
}
function setupStuff () {
// Unmap ctrl-t & ctrl-f
editor.commands.bindKeys({ 'ctrl-t': null })
editor.commands.bindKeys({ 'ctrl-f': null })
var files = getFiles()
if (files.length === 0) {
......@@ -187,10 +191,6 @@ function Editor (doNotLoadStorage, storage) {
editor.setSession(sessions[SOL_CACHE_FILE])
editor.resize(true)
// Unmap ctrl-t & ctrl-f
editor.commands.bindKeys({ 'ctrl-t': null })
editor.commands.bindKeys({ 'ctrl-f': null })
}
}
......
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