Skip to content

exit UIs on long press back#2166

Merged
m-m-adams merged 4 commits into
communityfrom
feature/exit_menu_uis_long_press
Jun 24, 2024
Merged

exit UIs on long press back#2166
m-m-adams merged 4 commits into
communityfrom
feature/exit_menu_uis_long_press

Conversation

@m-m-adams

@m-m-adams m-m-adams commented Jun 24, 2024

Copy link
Copy Markdown
Collaborator

Implements long press back to exit menus as a fast and consistent everywhere alternative to pressing the sidebar as mentioned in #2027

  1. Make exitUI a virtual function in UI rather than separate per class functions

  2. When back is pressed start a timer to exit the current UI

  3. UIs can exit on long press back by implementing exitUI. Currently the following UIs exit (basically everything that has an instant exit ability already)

  • Browsers (song, sample, synths, etc.)
  • Sound editing
  • Various renaming menus

Also reduces the long hold from 500 to 400 - this feels good for the existing long press functions and 500 felt too long for holding back to exit. Open to putting that back though

@m-m-adams m-m-adams marked this pull request as ready for review June 24, 2024 19:36
@github-actions

github-actions Bot commented Jun 24, 2024

Copy link
Copy Markdown
Contributor

Test Results

46 tests  ±0   46 ✅ ±0   0s ⏱️ ±0s
 8 suites ±0    0 💤 ±0 
 8 files   ±0    0 ❌ ±0 

Results for commit 017101b. ± Comparison against base commit 50a0cba.

♻️ This comment has been updated with latest results.

@m-m-adams m-m-adams added the cherry-pick Commit to cherry pick to release branch label Jun 24, 2024
@seangoodvibes

Copy link
Copy Markdown
Collaborator

This works really well. Love this. Can we add an entry to change log and community features (general improvements) for this?

@m-m-adams m-m-adams added this pull request to the merge queue Jun 24, 2024
Merged via the queue into community with commit 363eab7 Jun 24, 2024
github-actions Bot pushed a commit that referenced this pull request Jun 24, 2024
* exit UIs on long press back

* fix format

* add to docs

* return whether UI exited
tastycode pushed a commit to tastycode/DelugeFirmware that referenced this pull request Jul 3, 2024
* exit UIs on long press back

* fix format

* add to docs

* return whether UI exited
@m-m-adams m-m-adams deleted the feature/exit_menu_uis_long_press branch July 18, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick Commit to cherry pick to release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants