Closed Bug 1090478 Opened 10 years ago Closed 9 years ago

Add a keyboard shortcut for the Browser Toolbox

Categories

(DevTools :: Framework, defect)

defect
Not set
normal

Tracking

(firefox39 fixed)

RESOLVED FIXED
Firefox 39
Tracking Status
firefox39 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 1 obsolete file)

There are so many amazing key combinations still available to use for shortcuts - we should use one of them for the Browser Toolbox.
We should only add a shortcut if the browser toolbox is preffed on.  Maybe it could be something like cmd+opt+shift+i just to be extra sure it doesn't interfere with anything else (the normal toolbox is cmd+opt+i and DOMi is cmd+shift+i).
Attached patch browser-toolbox-keyboard-shortcut.patch (obsolete) (deleted) — Splinter Review
This adds the keyboard shortcut, but for some reason it always opens up in safe mode when opening via the shortcut even though it works when clicking it using the menu.
(In reply to Brian Grinstead [:bgrins] from comment #2)
> Created attachment 8560771 [details] [diff] [review]
> browser-toolbox-keyboard-shortcut.patch
> 
> This adds the keyboard shortcut, but for some reason it always opens up in
> safe mode when opening via the shortcut even though it works when clicking
> it using the menu.

I believe that's because Firefox opens in safe mode if the shift key is pressed on start up, which is part of the key combo. :/
(In reply to J. Ryan Stinnett [:jryans] from comment #3)
> (In reply to Brian Grinstead [:bgrins] from comment #2)
> > Created attachment 8560771 [details] [diff] [review]
> > browser-toolbox-keyboard-shortcut.patch
> > 
> > This adds the keyboard shortcut, but for some reason it always opens up in
> > safe mode when opening via the shortcut even though it works when clicking
> > it using the menu.
> 
> I believe that's because Firefox opens in safe mode if the shift key is
> pressed on start up, which is part of the key combo. :/

Ah, that is right.  Shift on Windows and opt on osx.  I can confirm by holding opt while clicking on the menu item. I guess we would need to pick different shortcuts per-OS that avoid each key or change the bootup code to ignore the modifier if it is the Browser Toolbox.

Is it important to be able to open up BT in safe mode with a modifier key?
Depends on: 1140183
Now that bug 1140183 has landed we can set an env variable for the new process to disable safe mode
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Attachment #8574167 - Flags: review?(jryans)
Comment on attachment 8574167 [details] [diff] [review]
browser-toolbox-keyboard-shortcut.patch

Review of attachment 8574167 [details] [diff] [review]:
-----------------------------------------------------------------

Cool!  A bit odd that the process API doesn't let you specify the child's environment directly, but this seems to work well enough.
Attachment #8574167 - Flags: review?(jryans) → review+
Attachment #8560771 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/6c1a259301e8
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 39
Keywords: dev-doc-needed
I've added a line in https://developer.mozilla.org/en-US/docs/Tools/Keyboard_shortcuts#Opening_and_closing_tools and in https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox#Opening_the_Browser_Toolbox.

Am I right that it is [Ctrl + Alt + Shift + I] on Windows/Linux? I only have access to a Mac at the moment...
Flags: needinfo?(bgrinstead)
(In reply to Will Bamberg [:wbamberg] from comment #11)
> I've added a line in
> https://developer.mozilla.org/en-US/docs/Tools/
> Keyboard_shortcuts#Opening_and_closing_tools and in
> https://developer.mozilla.org/en-US/docs/Tools/
> Browser_Toolbox#Opening_the_Browser_Toolbox.
> 
> Am I right that it is [Ctrl + Alt + Shift + I] on Windows/Linux? I only have
> access to a Mac at the moment...

Yes, that is correct.  Thanks for updating the docs.
Flags: needinfo?(bgrinstead)
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: