Make DevTools shortcuts work when DevTools are open, no matter if content or tools are focused
Categories
(DevTools :: Debugger, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: Harald, Unassigned, NeedInfo)
References
(Blocks 2 open bugs)
Details
What were you doing?
- Cmd-P with Debugger open but content focused.
What happened?
Print dialog.
What should have happened?
Debugger file dialog opens.
Anything else we should know?
Same applies to other shortcuts that should probably be treated global.
Related: https://twitter.com/piotrpalek/status/1129067891058511872
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
This seems surprising to me. While I understand the desire, if the main content window is focused, I don't think it should be able to intercept shortcuts in general, and it seems equally surprising to intercept some specific subset of shortcuts.
Reporter | ||
Comment 2•6 years ago
|
||
Making a better case here:
- For all other browser shortcuts, if the website does not intercept them, the browser handles them. Example would be Slack catching
Cmd-K
, preventing me from using the shortcut for awesomebar's tab switching. DevTools is a top-level browser feature and should adopt this paradigm. The event bubbling order would becontent > devtools > browser
- Low risk: Given the bubbling and cancelling of keyboard event, this would not break content but just catch more DevTools shortcuts that would be ignored when fired in content.
- Commonly used shortcuts like
Delete
,ESC
need some special considerations and testing and might only when with devtools focused
- Commonly used shortcuts like
- Focus state is not something that is always clearly visible in the UI, so having devtools behave line a website, where users have to double-check that the content has focus is not an easy visual check but often requires a just-to-be-sure click in the UI.
- Some shortcuts in DevTools, like
Cmd-Shift-C
are handled globally and some not – and the UI does not show them any different.
Reporter | ||
Comment 3•6 years ago
|
||
Martin & Victoria for more product/design input.
Comment 4•5 years ago
|
||
I agree that currently it's not really obvious if DevTools is focused or not. The suggestion of content > devtools > browser
would make keyboard shortcuts more predictable.
Comment 5•5 years ago
|
||
I'd expect that the debugger would pause when the debugger is open when I press F8, but nothing happens. I believe the issue is related. This is extremely annoying, as I can no longer pause and investigate the DOM during drag/hover, etc.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•