Quellcode durchsuchen

Fixed the tab key handler. when pressed ctrl+tab key, nothing to do

Norio Suzuki vor 9 Jahren
Ursprung
Commit
27d3b48a49
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 6 0
      resource/js/legacy/crowi-form.js

+ 6 - 0
resource/js/legacy/crowi-form.js

@@ -262,6 +262,12 @@ $(function() {
     var text = $target.val();
     var pos = $target.selection('getPos');
 
+    // When the user presses CTRL + TAB, it is a case to control the tab of the browser
+    // (for Firefox 54 on Windows)
+    if (event.ctrlKey === true) {
+      return;
+    }
+
     if (currentLine) {
       $target.selection('setPos', {start: currentLine.start, end: (currentLine.end - 1)});
     }