If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Now that we have developer edition, can we have a slick key combo for opening the toolbar?

NEW
Unassigned

Status

()

Firefox
Developer Tools: Framework
3 years ago
3 years ago

People

(Reporter: potch, Unassigned)

Tracking

33 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [devedition-ideas])

(Reporter)

Description

3 years ago
Been using this for my personal (ctrl+space):

window.addEventListener('keypress', function (e) {
  if (e.ctrlKey && !(e.metaKey || e.shiftKey || e.altKey) && e.key===' ') {
    DeveloperToolbar.focus();
  }
});

I find I use the toolbar more often when it's actually easy to open.

As an aside, now that we have a developer edition, can we get devtool shortcuts off the F keys on Mac?
Joe, what do you think about using a special easier-to-type key combo for accessing developer toolbar when in dev edition?  Specifically, is having a shortcut that's existence depends on a pref too weird?

The reasoning is that the shortcut to open dev toolbar is pretty hard to find (and type, on osx).  And ctrl+space (or similar) is probably way too common to turn on by default in all channels.  But it might be the kind of thing that could make sense as a default in dev edition.

Said shortcut would automatically open and focus the developer toolbar.  It's different than F2 in that it wouldn't ever close the toolbar if it was already opened, but rather refocus it.

It would be something like:

#ifdef MOZ_DEV_EDITION
pref("devtools.gcli.focusShortcut", true);
#else
pref("devtools.gcli.focusShortcut", false);
#endif
Flags: needinfo?(jwalker)
We'd like to put the command line into the web console so the output is longer lasting, and you'd access the commands by pressing : to say 'this is a command rather than JS'. There's nothing to stop ctrl+space from focussing the console and setting the input to ':' though.

Not against it at all.
Flags: needinfo?(jwalker)
Whiteboard: [devedition-ideas]
You need to log in before you can comment on or make changes to this bug.