Skip to content

API for setting DisabledUpdateMode for ShortcutRegistration #20813

@vursen

Description

Describe your motivation

The DS Team is planning on implementing a feature to make buttons focusable in the disabled state. The addFocusShortcut method from Flow allows setting a shortcut to focus a button, but currently, it doesn't work when the button is disabled. To support this functionality, we would need an API to keep the shortcut active even when the owner component is in the disabled state.

Describe the solution you'd like

Introduce a setDisabledUpdateMode method in ShortcutRegistration to allow configuring the behavior for specific shortcuts, such as the focus shortcut, when the owner component is disabled.

Metadata

Assignees

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions