Merge pull request #1210 from pietervdvn/RobinLinde-patch-3

Include textarea in hotkey checks, remove logging
This commit is contained in:
Pieter Vander Vennet 2022-12-31 01:27:31 +01:00 committed by GitHub
commit 172ca693c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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