Include textarea in hotkey checks, remove logging

This commit is contained in:
Robin van der Linde 2022-12-30 15:51:18 +01:00
parent 53addb2518
commit 54e0fbc256
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D

View file

@ -22,8 +22,7 @@ export default class Hotkeys {
>([]) >([])
private static textElementSelected(): boolean { private static textElementSelected(): boolean {
console.log(document.activeElement) return ["input", "textarea"].includes(document?.activeElement?.tagName?.toLowerCase())
return document?.activeElement?.tagName?.toLowerCase() === "input"
} }
public static RegisterHotkey( public static RegisterHotkey(
key: ( key: (