Skip to content

Make results_search run after keyup of Cmd key - #2702

Open
IanSimpson wants to merge 1 commit into
harvesthq:mainfrom
IanSimpson:allow-cmd-delete
Open

IanSimpson wants to merge 1 commit into
harvesthq:mainfrom
IanSimpson:allow-cmd-delete

Conversation

@IanSimpson

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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.

This branch has not been deployed

No deployments
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