Include textarea in hotkey checks, remove logging
This commit is contained in:
parent
53addb2518
commit
54e0fbc256
1 changed files with 1 additions and 2 deletions
|
@ -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: (
|
||||
|
|
Loading…
Reference in a new issue