From 8edb478d0adbc7c09e827f1606f9e7a6660dec65 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 8 Nov 2020 22:19:54 -0500 Subject: Update keyboard/mouse modifiers to return an array rather than a set (#1015) --- ext/bg/js/settings/keyboard-mouse-input-field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/bg/js') 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. -- cgit v1.2.3