2
0
Эх сурвалжийг харах

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

Norio Suzuki 8 жил өмнө
parent
commit
e3a1273ab4

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

@@ -182,6 +182,12 @@ $(function() {
     var text = $target.val();
     var text = $target.val();
     var pos = $target.selection('getPos');
     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) {
     if (currentLine) {
       $target.selection('setPos', {start: currentLine.start, end: (currentLine.end - 1)});
       $target.selection('setPos', {start: currentLine.start, end: (currentLine.end - 1)});
     }
     }