Closed
Bug 1450599
Opened 7 years ago
Closed 7 years ago
Remain the focus of tab after choosing its tab.
Categories
(DevTools :: General, enhancement)
DevTools
General
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: mantaroh, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.10 MB,
video/mp4
|
Details |
Currently, an all of tool panel steals focus its panel after choosing it from a tab. This behavior happens the first time, it has not happened from the second time.
STR:
1) Open devtool.
2) Choose any tool panel
AR:
A selected panel steals the focus at the first time.
e.g. webconsole focused own text box.
ER:
A focus should remain selected tab.
Reporter | ||
Comment 1•7 years ago
|
||
MarcoZ,
Bug 1444300 makes toolbox be able to select with the enter key or space key. But tool panel will steal the focus from toolbox tabs. We can confirm this behavior by using Nightly build. I think that Firefox should remain the tab focus even if opening the tool panel.
What do you think about this behavior for accessibility?
Flags: needinfo?(mzehe)
Comment 2•7 years ago
|
||
I think focus shhould remain on the button, and the user specifically tab to the panel. For example, when I select console, focus jumps straight into the input box down at the bottom of the console. So if I want to do a search first, I have to shift-tab all the way to the start. I think the more efficient way is to keep the focus on the tab after it has been selected. We do not really know what the user wants to do next.
Flags: needinfo?(mzehe)
Reporter | ||
Comment 3•7 years ago
|
||
(In reply to Marco Zehe (:MarcoZ) from comment #2)
> I think focus shhould remain on the button, and the user specifically tab to
> the panel. For example, when I select console, focus jumps straight into the
> input box down at the bottom of the console. So if I want to do a search
> first, I have to shift-tab all the way to the start. I think the more
> efficient way is to keep the focus on the tab after it has been selected. We
> do not really know what the user wants to do next.
Thanks!
Currently, the toolbar will set focus to the selected panel when selecting tools[1].(i.e. click tool tab)
However, some panel will steal the focus by process of initialization and onFocus.
* WebConsole: JSTerm will get focus when finishing to mount component[2].
* StyleEditor : StyleSheetEditor will get focus when showing own window[3].
* ScratchPad: scratchpad will get focus when initializing component[4].
* Performance: performance view ill get focus when initializing component[5].
I think we need to modify these codes and address the related tests.
[1] https://searchfox.org/mozilla-central/rev/f65d7528e34ef1a7665b4a1a7b7cdb1388fcd3aa/devtools/client/framework/toolbox.js#1868
[2] https://searchfox.org/mozilla-central/rev/f65d7528e34ef1a7665b4a1a7b7cdb1388fcd3aa/devtools/client/webconsole/components/JSTerm.js#269
[3] https://searchfox.org/mozilla-central/rev/f65d7528e34ef1a7665b4a1a7b7cdb1388fcd3aa/devtools/client/styleeditor/StyleSheetEditor.jsm#497
[4] https://searchfox.org/mozilla-central/rev/f65d7528e34ef1a7665b4a1a7b7cdb1388fcd3aa/devtools/client/scratchpad/scratchpad.js#1666
[5] https://searchfox.org/mozilla-central/rev/f65d7528e34ef1a7665b4a1a7b7cdb1388fcd3aa/devtools/client/performance/performance-view.js#207
Reporter | ||
Comment 4•7 years ago
|
||
I tried modifying the behavior of focus when selecting a tool. This attachment is prototype implementation. If I select the tool tab, devtool remains the focus of the tab.
My concern is that a user who wants to input script into the bottom text area of the webconsole might feels that a step is increased.
Reporter | ||
Comment 5•7 years ago
|
||
(In reply to Mantaroh Yoshinaga[:mantaroh] from comment #4)
> Created attachment 8968817 [details]
> screen.mp4
>
> I tried modifying the behavior of focus when selecting a tool. This
> attachment is prototype implementation. If I select the tool tab, devtool
> remains the focus of the tab.
>
> My concern is that a user who wants to input script into the bottom text
> area of the webconsole might feels that a step is increased.
Marco,
What do you think about this behavior?
Flags: needinfo?(mzehe)
Comment 6•7 years ago
|
||
Honestly, I am torn. On the one hand I see the point of a user quickly wanting to input script code, on the other I think that automati focus jumps are normally considered bad UX. Dragging in jamie for a second opinion.
Flags: needinfo?(mzehe) → needinfo?(jteh)
Comment 7•7 years ago
|
||
(In reply to Marco Zehe (:MarcoZ) from comment #6)
> Honestly, I am torn. On the one hand I see the point of a user quickly
> wanting to input script code, on the other I think that automati focus jumps
> are normally considered bad UX. Dragging in jamie for a second opinion.
They would be bad UX for sure if they just happened when the user selected a different tab with the arrow keys. However, in this case, as far as I can see, the user has to press the button before the tab is activated and the focus change happens. I think that's useful and appropriate for the console. The inspector doesn't seem to land in a useful lace, though. Also, this really should be consistent; i.e. it shouldn't change depending on whether this was the first time the panel was switched to or the second, etc.
Flags: needinfo?(jteh)
Updated•7 years ago
|
Severity: normal → enhancement
Reporter | ||
Comment 8•7 years ago
|
||
Sorry for my late reply.
As mentioned Marco and James, devtools of Firefox will not switch tool panel when pushing left or right arrow key. The devtools will change the tool panel only when pushing the enter key. So current behavior might be reasonable.
I will close this bug, however I'll work on it if someone feel this behavior is odd.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•