Skip to content

[app] Switch open menus on hover in Windows menu bar #289 - #290

Draft
Breakthrough wants to merge 1 commit into
mainfrom
issue-289
Draft

Breakthrough wants to merge 1 commit into
mainfrom
issue-289

Conversation

@Breakthrough

Copy link
Copy Markdown
Owner

Fixes #289.

Summary of Changes

  • Poll the pointer position while a top-level menu is open in MenuBar on Windows (dvr_scan/app/common.py).
  • Close the active Win32 popup menu (EndMenu) and open the newly hovered menu when the pointer moves to another top-level heading.
  • Toggle an open menu closed when the user clicks the same heading again.
  • Bind Alt menu mnemonics (Alt+F, Alt+E, Alt+S, Alt+V, Alt+H) and F10 on the parent window.
  • Add Windows MenuBar hover-switching and click-toggle unit tests in tests/test_application.py.

Verification

  • Passed ruff format --check and ruff check.
  • Passed pytest tests/test_application.py.

Update MenuBar on Windows to poll the pointer position while a top-level
menu is open. When the pointer moves over another heading, close the
active Win32 popup menu and open the hovered menu.

Also toggle an open menu closed when the user clicks the same heading
again, and bind Alt menu mnemonics and F10 on the parent window.

This branch has not been deployed

No deployments
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.

Windows menu bar does not switch open menus on hover

1 participant