Closed Bug 1475198 Opened 7 years ago Closed 6 years ago

Shift+Tab in JsTerm should give the focus to the previous element

Categories

(DevTools :: Console, enhancement, P1)

enhancement

Tracking

(firefox66 fixed)

RESOLVED FIXED
Firefox 66
Tracking Status
firefox66 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

(Whiteboard: [boogaloo-mvp])

Attachments

(1 file)

At the moment, Shift + Tab doesn't do anything. We should make it behave like a Shift Tab in a regular text input (focus previous element) Check https://bugzilla.mozilla.org/show_bug.cgi?id=1472161#c16 to see more information about this decision.
We need to decide what to do for the codeMirror JsTerm in regard to this. In codeMirror, shift tab will unindent current line/selected text, which is done in many text editors, and will probably be familiar to a lot of user. We could tab out only if the input is empty, like we do with Tab.
Priority: -- → P2
Whiteboard: [boogaloo-mvp]
There is a similar problem in the Style Editor and in the Debugger. Once the focus is inside CodeMirror, there is no way back, only forward. :P I was wondering what others do in this kind of situation. VS Code, for instance, does have the same kind of “Tab trapping” going on. So I looked at their accessibility documentation and they have two workarounds: 1. The global command palette lets users access any command or navigate between files, so they don’t have to tab through the full UI to get things done: https://code.visualstudio.com/docs/editor/accessibility#_keyboard-navigation 2. They also have a keyboard shortcut for escaping tab trapping, documented here: https://code.visualstudio.com/docs/editor/accessibility#_tab-trapping
Priority: P2 → P3
Whiteboard: [boogaloo-mvp] → [boogaloo-reserve]
Whiteboard: [boogaloo-reserve] → [boogaloo-mvp]
Priority: P3 → P2
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: P2 → P1
Attachment #9038159 - Attachment description: Bug 1475198 - Move focus to previous focusable element on Shift+Tab in JsTerm; r=bgrins. → Bug 1475198 - Move focus to previous focusable element on Shift+Tab in JsTerm; r=yzen.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/539ff106cd84 Move focus to previous focusable element on Shift+Tab in JsTerm; r=yzen.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: