From d88035e5de00d049a6fb857e61a1bfe2d06f6bfb Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 17 Jan 2017 10:18:40 +0000 Subject: [PATCH] Editor: move command setup to the beginning of init --- src/app/editor.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/editor.js b/src/app/editor.js index cd3cac5893..f5ec5db238 100644 --- a/src/app/editor.js +++ b/src/app/editor.js @@ -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 }) } }