8000 feat: add keyboard shortcut to open context menu by maribethb · Pull Request #8921 · google/blockly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add keyboard shortcut to open context menu #8921

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

Closed
wants to merge 3 commits into from

Conversation

maribethb
Copy link
Contributor

The basics

The details

Resolves

Fixes #8847

Proposed Changes

  • Adds a keyboard shortcut to open the context menu
  • Highlights the first item in the context menu automatically when shown

Reason for Changes

  • Context menus should be navigable by keyboard users.

Test Coverage

Documentation

Additional Information

This change depends on #8917 which depends on changes to FocusManager to return the correct thing from getFocusedNode. I manually made getFocusedNode return the selected block, and the context menu behaved as expected when opened with cmd+enter, so I think this should "just work" when the prerequisites are done, at which point it should be rebased onto the v12 branch.

@sappm01 sappm01 added the PR: feature Adds a feature label Apr 23, 2025
@maribethb
Copy link
Contributor Author

Closing for now in favor of keeping this in the kbe until we move more code into core.

@maribethb maribethb closed this May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0