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

Track time to prevent erroneous shortcut repeats #24

Merged
merged 1 commit into from
Dec 25, 2022

Conversation

EddieAbbondanzio
Copy link
Owner

Shortcuts that can be auto repeated by holding down their keys would occasionally fire multiple times producing jumpy results.

This made it frustrating to select items in the sidebar / search via the arrow keys because attempting to move up / down by 1 would often move the selection multiple times.

Reproduced:
reproduced

Fixed:
fixed

Comment on lines +18 to +19
const INITIAL_DELAY_MS = 300;
const REPEAT_DELAY_MS = 150;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delays were reduced again because they had been previously raised in an attempt to fix this bug. 200 / 400 ms is too slow.

@EddieAbbondanzio EddieAbbondanzio merged commit 0ad6730 into master Dec 25, 2022
@EddieAbbondanzio EddieAbbondanzio deleted the fix-repeat-shortcuts-firing-multiple-times branch December 25, 2022 14:56
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.

1 participant