Skip to content

(widgets): Accept numpad Enter to confirm entry edits#48

Merged
smolBlackCat merged 1 commit into
smolBlackCat:mainfrom
RyansOpenSourceRice:fix/numpad-enter-keybinding
Jun 27, 2026
Merged

(widgets): Accept numpad Enter to confirm entry edits#48
smolBlackCat merged 1 commit into
smolBlackCat:mainfrom
RyansOpenSourceRice:fix/numpad-enter-keybinding

Conversation

@RyansOpenSourceRice

Copy link
Copy Markdown

Summary

The inline-edit Gtk::Entry widgets (card title, list header, task) only
handled GDK_KEY_Return, so users pressing Enter on the numpad (which
sends GDK_KEY_KP_Enter) had no effect. This adds the keypad variant to
the same case so both Enter keys confirm the edit.

Changes

  • src/widgets/editable-label-header.cpp
  • src/widgets/task-widget.cpp
  • src/widgets/card-widget.cpp

The modal dialogs (board-dialog, card-dialog) use Gtk::Entry's default
activate signal, which already handles both Enter keys, so they are
not affected.

Testing

Built locally with cmake --build build (all 72 targets compile) and
ctest passes (5/5 existing tests).

AI

Harness: OpenHands
Model: openrouter/minimax/minimax-m3:zdr

The inline-edit Entry widgets (card title, list header, task) only
handled GDK_KEY_Return, so users pressing Enter on the numpad (which
sends GDK_KEY_KP_Enter) had no effect. Add the keypad variant to the
same case so both Enter keys confirm the edit.

Co-authored-by: openhands <openhands@all-hands.dev>

@smolBlackCat smolBlackCat left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the contribution! I didn't know about this one constant, thank you very much for the insight

@smolBlackCat smolBlackCat merged commit 0eb521e into smolBlackCat:main Jun 27, 2026
5 checks passed
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.

3 participants