summaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-03-01 19:02:43 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-03-01 19:02:43 +0200
commit314c567a47cd07dee7d6cda785257b2109afcad5 (patch)
tree10018e0d8751eb2624b038c9f2b1bf2d651b99ea /ext/fg
parenta46a84ee151fd218407125cc43a49632427feca2 (diff)
fix hotkeys in popup
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/float.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/ext/fg/js/float.js b/ext/fg/js/float.js
index aef0367e..bc459d23 100644
--- a/ext/fg/js/float.js
+++ b/ext/fg/js/float.js
@@ -40,7 +40,8 @@ class DisplayFloat extends Display {
return true;
}
return false;
- }]
+ }],
+ ...this._onKeyDownHandlers
]);
this._windowMessageHandlers = new Map([
@@ -114,18 +115,6 @@ class DisplayFloat extends Display {
}
}
- onKeyDown(e) {
- const key = Display.getKeyFromEvent(e);
- const handler = this._onKeyDownHandlers.get(key);
- if (typeof handler === 'function') {
- if (handler(e)) {
- e.preventDefault();
- return true;
- }
- }
- return super.onKeyDown(e);
- }
-
async getMessageToken() {
// this._messageTokenPromise is used to ensure that only one call to apiGetMessageToken is made.
if (this._messageTokenPromise === null) {