Skip to content
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

API for setting DisabledUpdateMode for ShortcutRegistration #20813

Open
vursen opened this issue Jan 8, 2025 · 0 comments
Open

API for setting DisabledUpdateMode for ShortcutRegistration #20813

vursen opened this issue Jan 8, 2025 · 0 comments

Comments

@vursen
Copy link
Contributor

vursen commented Jan 8, 2025

Describe your motivation

The DS Team is planning to implement 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.

@vursen vursen changed the title Add API to allow setting DisabledUpdateMode for ShortcutRegistration API to set DisabledUpdateMode for ShortcutRegistration Jan 8, 2025
@vursen vursen changed the title API to set DisabledUpdateMode for ShortcutRegistration API for setting DisabledUpdateMode for ShortcutRegistration Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant