From 54e0fbc256f87b04c8707149e126da6429a2da7b Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Fri, 30 Dec 2022 15:51:18 +0100 Subject: [PATCH] Include textarea in hotkey checks, remove logging --- UI/Base/Hotkeys.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UI/Base/Hotkeys.ts b/UI/Base/Hotkeys.ts index 5355840b8..0c9f6c6f4 100644 --- a/UI/Base/Hotkeys.ts +++ b/UI/Base/Hotkeys.ts @@ -22,8 +22,7 @@ export default class Hotkeys { >([]) private static textElementSelected(): boolean { - console.log(document.activeElement) - return document?.activeElement?.tagName?.toLowerCase() === "input" + return ["input", "textarea"].includes(document?.activeElement?.tagName?.toLowerCase()) } public static RegisterHotkey( key: (