-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gridnav): single axis movement flags #6044
feat(gridnav): single axis movement flags #6044
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful! Could you also add basic test for both? The lv_test_indev.h
API can be used in the tests.
Test added. I also made rollers emit value changed events for key presses #6008 (comment) and improved the example so the sliders and rollers sync with each other. |
Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! All good for me!
Description of the feature or fix
In response to #6008
Add flags to gridnav for accepting arrow keys only of a certain axis (either left/right or up/down) for grid navigation and send the ignored keys to the focused object.
LV_GRIDNAV_CTRL_HORIZONTAL_MOVE_ONLY
LV_GRIDNAV_CTRL_VERTICAL_MOVE_ONLY
Add an example that uses these flags.
Notes
lv_conf_template.h
run lv_conf_internal_gen.py and update Kconfig.scripts/code-format.py
(astyle version v3.4.12 needs to be installed) and follow the Code Conventions.