Skip to content

fix(keyboard): force redraw after shortcut opens submenu#2320

Draft
pfefferle wants to merge 1 commit intoBruceDevices:devfrom
pfefferle:fix/shortcut-esc-redraw
Draft

fix(keyboard): force redraw after shortcut opens submenu#2320
pfefferle wants to merge 1 commit intoBruceDevices:devfrom
pfefferle:fix/shortcut-esc-redraw

Conversation

@pfefferle
Copy link
Copy Markdown

Summary

  • When a keyboard shortcut (e.g. f for Files) opens a submenu from the main menu, the submenu draws over the screen. On exit, the main menu loop didn't know it needed to redraw, causing ESC to appear broken and navigation to produce font-size overlay glitches.
  • Change checkShortcutPress() to return bool, and force a full redraw when it executed a shortcut command.

Closes #2156

Test plan

  • On Cardputer, press f in main menu to open Files via shortcut
  • Press ESC — should return to main menu with clean rendering
  • Navigate with arrow keys — no font overlap or rendering artifacts
  • Repeat with other shortcuts (i, r, b, w)

When a keyboard shortcut (e.g. 'f' for Files) opens a submenu from the
main menu, the submenu draws over the screen. On exit, the main menu
loop didn't know it needed to redraw, causing ESC to appear broken and
navigation to produce font-size overlay glitches.

Change checkShortcutPress() to return bool, and force a full redraw
when it executed a shortcut command.

Closes BruceDevices#2156
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.

1 participant