Remove Ctrl + Shift + S keyboard shortcut
Categories
(DevTools :: General, enhancement, P2)
Tracking
(firefox66 verified, firefox67 verified)
People
(Reporter: jhirsch, Assigned: pdahiya)
References
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
This bug tracks removing the Ctrl + Shift + S shortcut from devtools, so that Screenshots can use it. Background: Firefox Screenshots has been interested in taking over the Ctrl + Shift + S keyboard shortcut from Devtools. Bug 1456984 measured usage of various keyboard shortcuts, and based on conversation with :digitarald, we are good to proceed with Screenshots taking the shortcut.
Comment 1•6 years ago
|
||
I've taken a look at bug 1456984 but didn't find the conversation about this. There is a mention about a github issue where that conversation likely took place, but the link is missing. It would be great to have the decision captured here (or a link to it) so we can later refer back to it if we ever find ourselves confused as to why this shortcut doesn't exist anymore.
Assignee | ||
Comment 2•6 years ago
|
||
Hi Patrick, Updating bug with GitHub link capturing discussion and devtools ok with Screenshots taking Ctrl + Shift + S shortcut https://github.com/mozilla-services/screenshots/issues/2491#issuecomment-420012054 Thanks!
Assignee | ||
Comment 3•6 years ago
|
||
Github link to track Screenshots keyboard shortcut pull request https://github.com/mozilla-services/screenshots/pull/5229
Reporter | ||
Comment 4•6 years ago
|
||
Maybe the Screenshots team could just take this bug, since it looks pretty straightforward, and since the 65 soft freeze is right around the corner. If I'm skimming the devtools code correctly, we'd just need to: - remove the jsdebugger shortcut definition from devtools/startup/devtools-startup.js[1], - update the tooltip for the jsdebugger Tool definition in devtools/client/definitions.js[2] (what should the new tooltip be?), - and remove the 'debugger.commandkey' l10n key[3]. I'm not sure what tests would be impacted, but we could just make the change, see what breaks, and update the broken tests. Digitarald, does this seem right for a first pass? Punam, any interest in taking a swing here? [1] https://searchfox.org/mozilla-central/source/devtools/startup/devtools-startup.js#137-141 [2] https://searchfox.org/mozilla-central/source/devtools/client/definitions.js#144 [3] https://searchfox.org/mozilla-central/source/devtools/startup/locales/en-US/key-shortcuts.properties#43
Assignee | ||
Comment 5•6 years ago
|
||
(In reply to Jared Hirsch [:_6a68] [:jhirsch] from comment #4) > Maybe the Screenshots team could just take this bug, since it looks pretty > straightforward, and since the 65 soft freeze is right around the corner. > > If I'm skimming the devtools code correctly, we'd just need to: > - remove the jsdebugger shortcut definition from > devtools/startup/devtools-startup.js[1], > - update the tooltip for the jsdebugger Tool definition in > devtools/client/definitions.js[2] (what should the new tooltip be?), > - and remove the 'debugger.commandkey' l10n key[3]. > > I'm not sure what tests would be impacted, but we could just make the > change, see what breaks, and update the broken tests. > > Digitarald, does this seem right for a first pass? Punam, any interest in > taking a swing here? > Sure, will take a pass at it and share a patch.Thanks! > > > [1] > https://searchfox.org/mozilla-central/source/devtools/startup/devtools- > startup.js#137-141 > [2] > https://searchfox.org/mozilla-central/source/devtools/client/definitions. > js#144 > [3] > https://searchfox.org/mozilla-central/source/devtools/startup/locales/en-US/ > key-shortcuts.properties#43
Assignee | ||
Comment 6•6 years ago
|
||
Link to try server run with recommended changes in #comment 4 https://treeherder.mozilla.org/#/jobs?repo=try&revision=f762636d7a721d4fe8fc3fcc53f24f8e3b0bb7f3 Patch is returning empty for jsdebugger tooltip getter, it will be good to get input from devtools on whats alternative tooltip that can be used for jsdebugger. Thanks!
Assignee | ||
Comment 7•5 years ago
|
||
Try server link with running build https://treeherder.mozilla.org/#/jobs?repo=try&revision=ace67b9186adc98935a61fb397035b926f7e45a9
Assignee | ||
Comment 8•5 years ago
|
||
Try server run with updated patch https://treeherder.mozilla.org/#/jobs?repo=try&revision=97adeb6bced59ece7871b0a49b48b98f8905d2da
Assignee | ||
Comment 9•5 years ago
|
||
Remove Ctrl + Shift + S ( Cmd + Opt + S for Mac) key board shortcut
Comment 10•5 years ago
|
||
Forwarding my ni to Jason, who can actually help.
Comment 11•5 years ago
|
||
Pushed by pdahiya@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f66935a5c80d Remove Ctrl + Shift + S keyboard shortcut r=jlast,_6a68
Assignee | ||
Comment 12•5 years ago
|
||
Created bug 1514055 to update mdn to reflect removal of debugger keyboard shortcut. Thanks!
Comment 13•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f66935a5c80d
Updated•5 years ago
|
Updated•5 years ago
|
Comment 14•5 years ago
|
||
I have reproduced this bug with Nightly 65.0a1 (2018-10-29) on Windows 7, 64 Bit. This bug's fix is verified with latest Beta!
Build ID : 20190218131312
User Agent : Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
[bugday-20190213]
Comment 15•5 years ago
|
||
I'm also confirming that the keyboard shortcut is opening the Screenshots feature on Firefox 67.0a1(2018-02-26) and on Firefox 66.0b11 it doesn't do anything.
Tests were executed under Ubuntu 18.04x64 and under macOS X 10.12.6.
Based on this and on Comment 14, I'm marking this issue as Verfied.
Comment 16•5 years ago
|
||
I frequently use the debugger and I have screenshots disabled. This totally breaks my workflow.
Comment 17•5 years ago
|
||
CC Harald, do you think we could find a new shortcut?
Comment 18•5 years ago
|
||
I totally understand the issue of breaking muscle memory. Optimizing for screenshots disabled is a hard one.
The 2 options I see would be adding a modifier to Ctrl-Shift-S or making keyboard shortcuts customizable.
Description
•