Fixes #11, but may revert if this proves inconvenient.
This commit is contained in:
parent
af0e0bb743
commit
6a9b75019a
2 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,7 @@ define(["file", "command", "settings!ace,user", "dom2"], function(File, command,
|
|||
|
||||
command.on("editor:theme", function(theme) {
|
||||
editor.setTheme("ace/theme/" + theme);
|
||||
editor.focus();
|
||||
});
|
||||
|
||||
//disable focusing on the editor except by program
|
||||
|
|
|
@ -287,6 +287,7 @@ define([
|
|||
|
||||
command.on("session:syntax", function(mode) {
|
||||
editor.getSession().setMode("ace/mode/" + mode);
|
||||
editor.focus();
|
||||
});
|
||||
|
||||
command.on("session:new-file", function() { addTab() });
|
||||
|
|
Loading…
Reference in a new issue