From 8642478e8a9c031528c9694a137bfd3510bc0350 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Mon, 30 Jan 2023 16:36:50 +0100 Subject: [PATCH] Fix shortcuts in supervisor search (#15269) --- src/state/quick-bar-mixin.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/state/quick-bar-mixin.ts b/src/state/quick-bar-mixin.ts index 1c4661c397..7f4473f4d4 100644 --- a/src/state/quick-bar-mixin.ts +++ b/src/state/quick-bar-mixin.ts @@ -144,11 +144,14 @@ export default >(superClass: T) => return false; } - if (!(el instanceof HTMLInputElement)) { + if ( + (el as Element).tagName !== "INPUT" && + !(el instanceof HTMLInputElement) + ) { return true; } - switch (el.type) { + switch ((el as HTMLInputElement).type) { case "button": case "checkbox": case "hidden":