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

fix: issue 3176 fixed to Enable Enter on Search in keyboard shortcut extension #3192

Closed
wants to merge 5 commits into from

Conversation

AishwaryaAgr
Copy link

Issue:
#3176 Enable Enter on Search

Description:
This pull request introduces a new feature that allows the focus to change when the user presses the "Enter" key while an input field is active in the keyboardShortcut.js. This enhancement enables users to use the navigation by clicking "f" to control the app.

Changes:

Added an event listener for the "Enter" key press on input fields.
When "Enter" is pressed, the focus is removed from the input field.
Ensured the default action of the "Enter" key is prevented to avoid unwanted form submissions.

Testing:

Tested the functionality in multiple browsers to verify consistent behavior.
Verified that the focus correctly shifts when pressing "Enter" on the active input.

@AishwaryaAgr AishwaryaAgr changed the title Aishwarya agr#3176 fix Aishwarya agr#3176 Oct 1, 2024
@AishwaryaAgr AishwaryaAgr changed the title fix Aishwarya agr#3176 fix: Aishwarya agr#3176 Oct 1, 2024
@AishwaryaAgr AishwaryaAgr changed the title fix: Aishwarya agr#3176 fix: Aishwaryaagr Issue 3176 Oct 1, 2024
@AishwaryaAgr AishwaryaAgr changed the title fix: Aishwaryaagr Issue 3176 fix: issue 3176 fixed by aishwaryaagr Oct 1, 2024
@AishwaryaAgr AishwaryaAgr changed the title fix: issue 3176 fixed by aishwaryaagr fix: issue 3176 fixed to Enable Enter on Search in keyboard shortcut extension Oct 1, 2024
@rxri
Copy link
Member

rxri commented Nov 2, 2024

That's not how it should be fixed though. You're listening for this event on whole document which shouldn't be a thing.

@rxri rxri closed this Nov 2, 2024
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.

2 participants