Quick search hot key triggers when text input is focused #54
Labels
No labels
dependencies
Priority: Critical
Priority: High
Priority: Low
Priority: Medium
State: Abandoned
State: Blocked
State: Completed
State: In progress
State: New
State: On Hold
State: Pending
State: Review needed
State: Waiting for release
Type: Bug
Type: Enhancement
Type: Maintenance
Type: Question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Serraniel/AniwatchPlus#54
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a text input element is focused and the user presses
Shift
+F
with the intention to type a captial F the quick search is focused instead.Possible soloution would be to either prevent the event when some type of text input is focused or to change the hotkey. I don´t know yet what the best option would be. Overwriting
Ctrl
+F
is not an option for me personally, don´t know about maybeAlt
+F
or maybeCtrl
+Shift
+F
?I personally would go for
Ctrl
+Shift
+F
.I´ll do this then.
Maybe not as easy decission as it sounds like.
event.key
becomes some Unicode char () while in Firefox it still is an
F
.ctrl
. Seems like the browser prevents this while listening to its own hotkeys.So, I decided to just add a check if the
document.activeElement
is some kind of input ot contentEditable and prevent the hotkey then as a quick fix.The behaviour might be improved in future if we found a better solution.
Fixed with https://github.com/Serraniel/AniwatchPlus/releases/tag/0.2.0.0-beta.0