summaryrefslogtreecommitdiff
path: root/ext/fg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-08 22:19:54 -0500
committerGitHub <noreply@github.com>2020-11-08 22:19:54 -0500
commit8edb478d0adbc7c09e827f1606f9e7a6660dec65 (patch)
treed7776da1117456d94b2ef8861150637eca60143d /ext/fg/js
parent681065e5549e3f6bf54e416120884481bded5b6e (diff)
Update keyboard/mouse modifiers to return an array rather than a set (#1015)
Diffstat (limited to 'ext/fg/js')
-rw-r--r--ext/fg/js/frontend.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index af1a6527..0ed842f5 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -250,6 +250,7 @@ class Frontend {
}
async _onActiveModifiersChanged({modifiers}) {
+ modifiers = new Set(modifiers);
if (areSetsEqual(modifiers, this._activeModifiers)) { return; }
this._activeModifiers = modifiers;
if (this._popup !== null && await this._popup.isVisible()) {