Page MenuHomePhabricator

In reply widget, when tabbing from the text field to the mode switcher, the text field cursor remains visible
Open, Needs TriagePublic

Description

Splitting off from T274423:

Press Shift–Tab, it should 'highlight' [put a box around] the Source tab if you were editing in Visual mode. If you were typing in Source mode this step will highlight the Source tab, while the cursor is still visible but not active in the description field. That does not look expected to me. @matmarex, can you confirm? Should the cursor stay visible?

Event Timeline

This occurs because the mode switcher is treated as part of the editing toolbar, and the editing toolbar is special-cased to keep the editing surface active even if the focus moves there, so that actions like bolding text can be triggered from the toolbar using the keyboard.

For future reference, if we wanted to work on this, these are the options I had in mind:

  • Change the tabbing order so that the mode switcher is not between the editing toolbar and the editing surface
  • Remove the feature that keeps the editing surface active in this case (most of the toolbar actions can be triggered by keyboard shortcuts instead)

But it's not clear whether either of these would actually be an improvement.