Skip to content

Provide an option for the "wrapping around" of the selected menu item when the limits are reached #3126

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

Open
clarencelocke opened this issue Apr 14, 2025 · 0 comments

Comments

@clarencelocke
Copy link

Describe the problem you have/What new integration you would like

Provide an option (or collection of options) which provide the ability to decide what to do when the down action is invoked when the last menu item is already selected (or up for the first item). These new options would allow for an opt-in to wrap the selection around to the other limit (i.e., last → first, first → last).

Please describe your use case for this integration and alternatives you've tried:

All of the necessary ivars and/or methods for introspecting the current state of the menu or attempting to control it (outside of the limited up, down, left, right) are protected in the code right now, so I wasn't even able to write my own helper function(s) to get around this issue.

I could create my own custom component, but that is really overkill for this capability.

Additional context

I have a very limited user interface (display and a single button) and I am trying to implement the most basic of user interaction for a menu:

  • long press to bring up the menu (when not active)
  • long press to enter the menu item (when the menu is active)
  • single click to move to the next item. If the last item has been reached, the selection should wrap around to the first item.

If the public API on the menu component allows for selected item introspection and control, then that is likely a more broad solution that would allow this feature request to be implemented with my own logic.

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

No branches or pull requests

1 participant