소스 검색

Ignore keycodes if meta key is also pressed

JC Brand 6 년 전
부모
커밋
836d3946e8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/converse-chatview.js

+ 1 - 1
src/converse-chatview.js

@@ -996,7 +996,7 @@ converse.plugins.add('converse-chatview', {
                     // When ctrl is pressed, no chars are entered into the textarea.
                     return;
                 }
-                if (!ev.shiftKey && !ev.altKey) {
+                if (!ev.shiftKey && !ev.altKey && !ev.metaKey) {
                     if (ev.keyCode === _converse.keycodes.FORWARD_SLASH) {
                         // Forward slash is used to run commands. Nothing to do here.
                         return;