diff options
author | Lauris BH <lauris@nix.lv> | 2017-03-08 02:28:23 +0200 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-03-07 19:28:23 -0500 |
commit | fa75e0e7c45dfd7b72b9fa56dfb4b0ca1496c81c (patch) | |
tree | 6eda215696f28457db73bad809a92429be9cfabc /webapp | |
parent | fa04d2bf3a810912594d2d9d9f13bbd67ebca7a1 (diff) | |
download | chat-fa75e0e7c45dfd7b72b9fa56dfb4b0ca1496c81c.tar.gz chat-fa75e0e7c45dfd7b72b9fa56dfb4b0ca1496c81c.tar.bz2 chat-fa75e0e7c45dfd7b72b9fa56dfb4b0ca1496c81c.zip |
Fix keyboard shortcuts not to trigger on AltGr key (#5566)
On Windows when pressing AltGr it will trigger event with same properties as left Ctrl key. Check explicitly that altKey is false otherwise on some keyboard layouts input of special characters is blocked.
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/utils/utils.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx index 384cea752..58278c893 100644 --- a/webapp/utils/utils.jsx +++ b/webapp/utils/utils.jsx @@ -32,7 +32,7 @@ export function isMac() { } export function cmdOrCtrlPressed(e) { - return (isMac() && e.metaKey) || (!isMac() && e.ctrlKey); + return (isMac() && e.metaKey) || (!isMac() && e.ctrlKey && !e.altKey); } export function isInRole(roles, inRole) { |