From 23390d3892425a5ef194eaab70013352d4523a80 Mon Sep 17 00:00:00 2001 From: CodoPixel Date: Fri, 23 Apr 2021 23:55:17 +0200 Subject: [PATCH] fix(): bug fixes --- src/JSPanel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JSPanel.ts b/src/JSPanel.ts index 255afb6..0af21e5 100644 --- a/src/JSPanel.ts +++ b/src/JSPanel.ts @@ -300,7 +300,7 @@ class JSPanel { this._closePanel(); }); - button.addEventListener("keydown", (e: KeyboardEvent) => { + window.addEventListener("keydown", (e: KeyboardEvent) => { if (e.key === "Tab" || e.keyCode === 9) { if (this._isOpen()) this._focusInPanel(e); }