Editor: move command setup to the beginning of init

pull/1/head
Alex Beregszaszi 8 years ago
parent 96db85b6e5
commit d88035e5de
  1. 8
      src/app/editor.js

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

Loading…
Cancel
Save