Closed
Bug 796009
Opened 12 years ago
Closed 11 years ago
[markup panel] Pressing the left arrow key should close parent if on an already-closed node in markup panel
Categories
(DevTools :: Inspector, defect)
DevTools
Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 22
People
(Reporter: harth, Assigned: jryans)
References
Details
Attachments
(1 file, 1 obsolete file)
2.71 KB,
patch
|
jwalker
:
review+
|
Details | Diff | Splinter Review |
If you currently have a node selected in the markup panel that isn't expanded, pressing the left arrow key (close or un-expand node) will do nothing. We should close the parent node if that's the case.
Comment 1•12 years ago
|
||
Or we could just navigate to the parent. That way we can kill 2 bugs in one, and we can still close a deeply nested tree by hammering on LEFT.
Updated•12 years ago
|
Summary: Pressing the left arrow key should close parent if on an already-closed node in markup panel → [markup panel] Pressing the left arrow key should close parent if on an already-closed node in markup panel
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jryans
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #719810 -
Flags: review?(jwalker)
Assignee | ||
Comment 3•11 years ago
|
||
I've given additional functionality to both the left and right arrows: * Left Arrow on a collapsed node will move its the parent node * Right Arrow on an expanded node will move to the first child (if any)
Comment 4•11 years ago
|
||
Comment on attachment 719810 [details] [diff] [review] Improve left and right navigation Review of attachment 719810 [details] [diff] [review]: ----------------------------------------------------------------- It looks to me that this patch doesn't do what the title asks i.e. it doesn't "close parent", it navigates to the parent. Not that I'm complaining - I think that navigate to parent is what windows has done for a while and what osx has been doing more recently. Harth, are you happy with this modification?
Attachment #719810 -
Flags: review?(jwalker) → review+
Comment 5•11 years ago
|
||
(In reply to Joe Walker [:jwalker] from comment #4) > > - I think that navigate to parent is what windows has done for a while and > what osx has been doing more recently. Isn't "navigate to parent and collapse" the more pertinent behavior? I thought that was the default action (at least on OS X). In the interest of keeping keyboard navigation in trees consistent across all our tools (profiler, variables view), maybe it'd be a good idea to implement it here as well.
Comment 6•11 years ago
|
||
(In reply to Victor Porof [:vp] from comment #5) > (In reply to Joe Walker [:jwalker] from comment #4) > > > > - I think that navigate to parent is what windows has done for a while and > > what osx has been doing more recently. > > Isn't "navigate to parent and collapse" the more pertinent behavior? I > thought that was the default action (at least on OS X). The OS X 10.8.2 Finder does navigate when it can't collapse, and collapse when it can, which is what this patch does. Mail.app has a combined navigate+collapse action as you suggest. iTunes (as you might expect) does something utterly bizarre and incomprehensible. At this point I stopped looking because we obviously can't trust Apple to lead here. Windows is (mostly) consistent in having separate navigate and collapse actions. > In the interest of > keeping keyboard navigation in trees consistent across all our tools > (profiler, variables view), maybe it'd be a good idea to implement it here > as well. FWIW, the profiler on a Mac has separate navigate and collapse actions. I can't test variables view easily, but perhaps the XUL tree control is doing something different for different OSs? (But then you're on a Mac?)
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Joe Walker [:jwalker] from comment #4) > It looks to me that this patch doesn't do what the title asks i.e. it > doesn't "close parent", it navigates to the parent. Not that I'm complaining > - I think that navigate to parent is what windows has done for a while and > what osx has been doing more recently. Harth, are you happy with this > modification? Yeah, I was attempting do what you alluded to in comment 2, namely to combine the request of this bug and bug 796015 (to improve navigating to parent). (In reply to Victor Porof [:vp] from comment #5) > (In reply to Joe Walker [:jwalker] from comment #4) > > > > - I think that navigate to parent is what windows has done for a while and > > what osx has been doing more recently. > > Isn't "navigate to parent and collapse" the more pertinent behavior? I > thought that was the default action (at least on OS X). In the interest of > keeping keyboard navigation in trees consistent across all our tools > (profiler, variables view), maybe it'd be a good idea to implement it here > as well. On OS X 10.8.2, it looks like the other tools disagree with each other: * Profiler (same as markup with my patch) * When moving forward with right arrow, expand and navigate are separate steps * When moving back with left arrow, collapse and navigate are separate steps * Variables View * When moving forward with right arrow, expand and navigate are separate steps * When moving back with left arrow, collapse and navigate happen simultaneously I personally prefer them as separate steps myself, but I agree that whatever we go with, we should get all our tree views consistent.
Assignee | ||
Comment 8•11 years ago
|
||
Updated patch to match commit message format. Sorry for missing this, nothing else has changed.
Attachment #719810 -
Attachment is obsolete: true
Attachment #720513 -
Flags: review?(jwalker)
Comment 9•11 years ago
|
||
(In reply to J. Ryan Stinnett [:jryans] from comment #7) > On OS X 10.8.2, it looks like the other tools disagree with each other: > > * Profiler (same as markup with my patch) > * When moving forward with right arrow, expand and navigate are separate > steps > * When moving back with left arrow, collapse and navigate are separate > steps > * Variables View > * When moving forward with right arrow, expand and navigate are separate > steps > * When moving back with left arrow, collapse and navigate happen > simultaneously > > I personally prefer them as separate steps myself, but I agree that whatever > we go with, we should get all our tree views consistent. Thanks for this analysis: I raised bug 847349 - Variables View should have left arrow do collapse and navigate in separate steps.
Updated•11 years ago
|
Attachment #720513 -
Flags: review?(jwalker) → review+
Comment 10•11 years ago
|
||
Heather, are you happy with this? It's going on my list of things to get landed.
Flags: needinfo?(fayearthur)
Whiteboard: [land-in-fxteam]
Comment 12•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Fx-Team&rev=7eb5914cbb5d https://hg.mozilla.org/integration/fx-team/rev/09e85bef5d8d
Flags: needinfo?(fayearthur)
Whiteboard: [land-in-fxteam] → [fixed-in-fx-team]
Comment 13•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/09e85bef5d8d
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 22
Comment 14•11 years ago
|
||
Thanks for the patch Ryan
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•