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

Make results_search run after keyup of Cmd key #2702

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IanSimpson
Copy link

Summary

This is a fix for #2521

Because of a known behaviour on OSX, keyup events are not triggered for a key pressed while Cmd is being held down.

This lead to an issue when pushing Cmd-Delete on Mac to clear the search field. The keyup event handler ignores any pushes of (amongst others) modifier keys, including Ctrl, Alt, and Cmd.

This commit simply lets the search function continue to run after Cmd is released, so behaviour is closer to expected.

References

Because of a known behaviour in OSX, Cmd-Delete only registers a single keyup (that of Cmd). Because the results_search function was blocked from running on keyup of Cmd, the "no matching results" message continued to be displayed.
@koenpunt koenpunt closed this Sep 25, 2016
@koenpunt koenpunt reopened this Sep 25, 2016
@koenpunt
Copy link
Collaborator

Thanks! However I think the issue can also be solved by listening to the input event, instead of keyup. Using input has been proposed before as a fix for other issues, so we might look in to that, and maybe fix multiple at once.

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.

None yet

2 participants