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

Added Optional Roving Tabindex to Toolbar #4557

Closed
wants to merge 6 commits into from
Closed

Conversation

colfin-96
Copy link

This PR is not fully done yet, but will include an optional roving tabindex in the toolbar. This is a feature I need in order to have a better User Experience, so that users don't have to tab through each individual item. Rather, they tab into the toolbar, then the editor. Within the toolbar, they can navigate left and right with the ArrowKeys.

packages/quill/src/modules/toolbar.ts Outdated Show resolved Hide resolved
@@ -133,9 +139,54 @@ class Toolbar extends Module<ToolbarProps> {
}
this.update(range);
});

if (this.hasRovingTabindex && input.tagName === 'BUTTON') {
input.addEventListener('keydown', (e) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup required for eventListener?

packages/quill/src/modules/toolbar.ts Outdated Show resolved Hide resolved
packages/quill/src/ui/picker.ts Show resolved Hide resolved
packages/quill/src/ui/picker.ts Outdated Show resolved Hide resolved
packages/quill/src/ui/picker.ts Outdated Show resolved Hide resolved
@colfin-96
Copy link
Author

Closed because I'm reopening it from another branch (#4563)

@colfin-96 colfin-96 closed this Jan 13, 2025
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.

2 participants