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

Fix tabbing #370

Merged
merged 1 commit into from
May 13, 2020
Merged

Fix tabbing #370

merged 1 commit into from
May 13, 2020

Conversation

madarche
Copy link
Contributor

At the moment the new tabDisable option has usability problems:

  • In classical mode a tab focuses on the toolbar of the next editor, while we want to go to the edit area of the next editor
  • In inline mode, this problem doesn't exist (because the toolbars are not displayed) but shift-tab doesn't work (the focus may be in the hidden toolbar)

So here is a proposed solution by setting tabindex="-1" cf. https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex

Maybe it's not the right way to fix the problem, but it gives you a hint of what it could be.

At the moment the new tabDisable option has usability problems:

* In classical mode a `tab` focuses on the toolbar of the next editor,
  while we want to go to the edit area of the next editor
* In inline mode, this problem doesn't exist (because the toolbars are
  not displayed) but `shift-tab` doesn't work (the focus may be in the
  hidden toolbar)

So here is a proposed solution by setting tabindex="-1"
cf. https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex

Maybe it's not the right way to fix the problem, but it gives you a hint
of what it could be.
@JiHong88
Copy link
Owner

Hi, @madarche
Thank you for your contribution!

@JiHong88 JiHong88 merged commit b62e365 into JiHong88:master May 13, 2020
@madarche
Copy link
Contributor Author

@JiHong88 you're most welcome!

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