فهرست منبع

HUE-3694 [editor] Multi query hightlighting disappears on focus

Enrico Berti 9 سال پیش
والد
کامیت
0e5e48d
1فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 6 6
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 6 - 6
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -2574,12 +2574,6 @@
         if (options.updateOnInput){
           snippet.statement_raw(editor.getValue());
         }
-      });
-
-      editor.on("focus", function () {
-        snippet.inFocus(true);
-        $(".ace-editor").data("last-active-editor", false);
-        $el.data("last-active-editor", true);
         if (editor.session.$backMarkers) {
           for (var marker in editor.session.$backMarkers) {
             if (editor.session.$backMarkers[marker].clazz === 'highlighted') {
@@ -2589,6 +2583,12 @@
         }
       });
 
+      editor.on("focus", function () {
+        snippet.inFocus(true);
+        $(".ace-editor").data("last-active-editor", false);
+        $el.data("last-active-editor", true);
+      });
+
       editor.selection.on("changeSelection", function () {
         snippet.selectedStatement(editor.getSelectedText());
       });