Merge pull request #1210 from pietervdvn/RobinLinde-patch-3
Include textarea in hotkey checks, remove logging
This commit is contained in:
commit
172ca693c4
1 changed files with 1 additions and 2 deletions
|
@ -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: (
|
||||||
|
|
Loading…
Reference in a new issue