Selaa lähdekoodia

Prevent Ace from taking over find command

Andrew Kane 8 vuotta sitten
vanhempi
commit
79adecf07d
2 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 4 0
      CHANGELOG.md
  2. 1 1
      app/assets/javascripts/blazer/application.js

+ 4 - 0
CHANGELOG.md

@@ -1,3 +1,7 @@
+## 1.7.2 [unreleased]
+
+- Prevent Ace from taking over find command
+
 ## 1.7.1
 
 - Do not fork when enter key pressed

+ 1 - 1
app/assets/javascripts/blazer/application.js

@@ -301,7 +301,7 @@ function showEditor() {
     readOnly: false // false if this command should not apply in readOnly mode
   });
   // fix command+L
-  editor.commands.removeCommands(["gotoline"]);
+  editor.commands.removeCommands(["gotoline", "find"]);
 
   editor.getSession().on("change", function () {
     $("#query_statement").val(editor.getValue());