Commits

Anonymous committed c5b4f40

#422: do nothing if ctrl/alt/shift are pressed.

Comments (0)

Files changed (1)

html/issue.item.js

     // start from -1 so 'n' sends to the first message at the beginning
     var current = -1;
     $(document).keydown(function (event) {
+        // do nothing if ctrl/alt/shift are pressed
+        if (event.ctrlKey || event.altKey || event.shiftKey)
+            return true;
+
         // disable the shortcuts while editing form elements (except ESC)
         if (is_editing(event.target)) {
             // ESC - unfocus the form