Repository navigation
Fix numpad Enter not confirming choices in search menu (#1618) - #2507
Merged
Merged
Conversation
…panso#2483) When running commands like `espanso service --help` or `espanso package --help`, the CLI was displaying the main application help instead of the specific subcommand help. This was caused by using `clap_instance.print_help()` which always prints the root command help, instead of using `err.exit()` which properly handles contextual help for subcommands. Fix: Use `err.exit()` to let Clap handle contextual help display. Fixes espanso#2483
When using the search menu, pressing the numpad Enter key did not confirm the selected choice, only the standard Enter key worked. This was caused by the OnCharEvent handler only checking for WXK_RETURN and not WXK_NUMPAD_ENTER. Both keys should trigger the Submit() action. Fix: Added WXK_NUMPAD_ENTER to the key event check alongside WXK_RETURN. Fixes espanso#1618
Collaborator
|
Yup, also great submission! |
Collaborator
|
Does this fix #1070 too? |
sboldt1978
pushed a commit
to sboldt1978/espanso
that referenced
this pull request
Feb 11, 2026
…espanso#2507) Fix numpad Enter not confirming choices in search menu (espanso#1618) When using the search menu, pressing the numpad Enter key did not confirm the selected choice, only the standard Enter key worked. This was caused by the OnCharEvent handler only checking for WXK_RETURN and not WXK_NUMPAD_ENTER. Both keys should trigger the Submit() action. Fix: Added WXK_NUMPAD_ENTER to the key event check alongside WXK_RETURN. Fixes espanso#1618
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using the search menu, pressing the numpad Enter key did not confirm the selected choice. Only the standard Enter key worked.
Now both the standard Enter key and the numpad Enter key properly confirm the selected choice in the search menu.
Fixes #1618