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
No known key found for this signature in database
GPG key ID: 53956B3252478F0D

View file

@ -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: (