Skip to content

fix: stop settings checkboxes double-toggling on remote OK press - #48

Merged
GuiDev1994 merged 1 commit into
GuiDev1994:mainfrom
KrisEnigma:fix/checkbox-double-toggle
Jul 20, 2026
Merged

fix: stop settings checkboxes double-toggling on remote OK press#48
GuiDev1994 merged 1 commit into
GuiDev1994:mainfrom
KrisEnigma:fix/checkbox-double-toggle

Conversation

@KrisEnigma

@KrisEnigma KrisEnigma commented Jul 17, 2026

Copy link
Copy Markdown

In short, pressing "enter" on checkboxes works properly now instead of "double clicking".

LVGL's keypad handling already synthesizes a CLICKED event after an ENTER key release for the focused object (indev_keypad_proc in lv_indev.c). pref_checkable_activate() and idr_checkbox_activate() were also listening on LV_EVENT_KEY for ENTER, so a single remote OK press fired the toggle twice, visually canceling out. Drops the redundant LV_EVENT_KEY registration/handling; CLICKED alone covers touch and remote/keypad activation. Standalone, based on upstream/main.

LVGL's keypad handling already synthesizes a CLICKED event after an
ENTER key release for the focused object (indev_keypad_proc in
lv_indev.c). pref_checkable_activate() and idr_checkbox_activate() were
also listening on LV_EVENT_KEY for ENTER, so a single remote OK press
fired the toggle twice, visually canceling out. Drop the redundant
LV_EVENT_KEY registration/handling; CLICKED alone covers touch and
remote/keypad activation.
@GuiDev1994
GuiDev1994 merged commit dac1d2b into GuiDev1994:main Jul 20, 2026

@GuiDev1994 GuiDev1994 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.

Approved and included in #51 (Release v1.1.4).

@GuiDev1994

Copy link
Copy Markdown
Owner

Included in Aurora v1.1.4 via #.

Thank you @KrisEnigma — credited in the README Contributors section and preserved in git history on main.

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