Skip to content

Update Scope of contextmenu / keyboard shortcut items to include a focusedNode property #8839

@maribethb

Description

@maribethb

Check for duplicates

  • I have searched for similar issues before opening a new one.

Problem

Keyboard shortcuts and context menu items need to know which item was focused, and this may not be just a block/workspace/comment. It could be any focusable item.

Request

  1. Add a focusedNode (open to naming suggestions) property to the Scope type.
  2. Update the callers of the getContextMenuOptions function to include the property when they call this method. Continue setting the other properties if relevant for backwards compatibility.

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

issue: feature requestDescribes a new feature and why it should be added

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions