Closed Bug 778555 Opened 12 years ago Closed 12 years ago

[Developer Toolbar] allow keyboard-shortcut to hide/toggle Developer Toolbar

Categories

(DevTools :: General, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 773185

People

(Reporter: Debloper, Assigned: paul)

Details

Once the Developer Toolbar is activated, seemingly the only way to close/hide it is by clicking on the tiny cross on the right, with mouse. Might be a platform issue, haven't yet tried on Linux/Mac OSX.

I'm sure, many developers will prefer a keyboard-shortcut (Shift+F2) for the toggling of DevToolbar, or at least Press Esc to hide it.
Assignee: nobody → paul
(In reply to Soumya Deb [:Debloper] from comment #0)
> I'm sure, many developers will prefer a keyboard-shortcut (Shift+F2) for the
> toggling of DevToolbar, or at least Press Esc to hide it.

I agree. I just wanted to add a note here saying that the requirements are a little tricky because we want keyboard shortcuts to:

1. open the toolbar when it's closed and focus on the command line
2. focus on the command line when the toolbar is already open
3. close the toolbar (when the command line is focused)
4. close the toolbar (when the command line is not focused)
5. (just occurred to me) return the focus to the document when you are focused on the command line

#2 is the reason that the shortcut works as it does now. I don't think that #4 is a big deal because you could always focus the command line using the existing shortcut first. #5 would be nice, but is optional.

For #3, Esc might work out fine and would be consistent with other tools.
ESC isn't simple because the command line uses that to close menus and output, so it might be something people use frequently in the command line.

My preferred solution is bug 773185, which I think solves this problem neatly. Unless there are good reasons to not solve this bug that way (in which case please re-open this bug) I'm planning on solving this in that bug.

Thanks.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.