Skip to content

Fix numpad Enter not confirming choices in search menu (#1618) - #2507

Merged
AucaCoyan merged 3 commits into
espanso:devfrom
gcailly:fix-numpad-enter-1618
Oct 5, 2025
Merged

AucaCoyan merged 3 commits into
espanso:devfrom
gcailly:fix-numpad-enter-1618

Conversation

@gcailly

@gcailly gcailly commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

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

…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
@gcailly
gcailly requested a review from AucaCoyan as a code owner October 5, 2025 19:09
@AucaCoyan

Copy link
Copy Markdown
Collaborator

Yup, also great submission!

@AucaCoyan
AucaCoyan merged commit 48b4067 into espanso:dev Oct 5, 2025
@smeech

smeech commented Oct 15, 2025

Copy link
Copy Markdown
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
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.

Numpad enter does not confirm choices in Search Menue

3 participants