Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove window.disableShortcuts #401

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

PierreDemailly
Copy link
Member

No description provided.

@targos
Copy link
Collaborator

targos commented Jul 14, 2024

I don't think it's being handled in the right place. It should be the shortcut handler that checks whether the event target is an input element or similar, and do nothing when it's the case.

@PierreDemailly PierreDemailly force-pushed the searchbar-disable-shortcuts-on-focus branch from dee1fd8 to 914bb8a Compare July 14, 2024 16:39
@PierreDemailly PierreDemailly changed the title fix(searchbar): disable shortcuts on focus refactor: remove window.disableShortcuts Jul 14, 2024
@PierreDemailly
Copy link
Member Author

I don't think it's being handled in the right place. It should be the shortcut handler that checks whether the event target is an input element or similar, and do nothing when it's the case.

I agree, mb 👍 I removed window.disableShortcuts (and changed PR title), it works better now

@PierreDemailly PierreDemailly merged commit 6b58f4d into master Jul 15, 2024
9 checks passed
@PierreDemailly PierreDemailly deleted the searchbar-disable-shortcuts-on-focus branch July 15, 2024 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants