diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-08 22:19:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-08 22:19:54 -0500 |
commit | 8edb478d0adbc7c09e827f1606f9e7a6660dec65 (patch) | |
tree | d7776da1117456d94b2ef8861150637eca60143d /ext/bg | |
parent | 681065e5549e3f6bf54e416120884481bded5b6e (diff) |
Update keyboard/mouse modifiers to return an array rather than a set (#1015)
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/settings/keyboard-mouse-input-field.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/settings/keyboard-mouse-input-field.js b/ext/bg/js/settings/keyboard-mouse-input-field.js index f9c6dfcd..d5a2a2ea 100644 --- a/ext/bg/js/settings/keyboard-mouse-input-field.js +++ b/ext/bg/js/settings/keyboard-mouse-input-field.js @@ -147,7 +147,7 @@ class KeyboardMouseInputField extends EventDispatcher { } _getModifierKeys(e) { - const modifiers = DocumentUtil.getActiveModifiers(e); + const modifiers = new Set(DocumentUtil.getActiveModifiers(e)); // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey // https://askubuntu.com/questions/567731/why-is-shift-alt-being-mapped-to-meta // It works with mouse events on some platforms, so try to determine if metaKey is pressed. |