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 {
|
||||
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