New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 638585 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug

Blocked on:
issue 174309



Sign in to add a comment

Cmd + W closes the whole browser tab while a file is edited in the dev tools

Reported by nonameth...@gmail.com, Aug 17 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Steps to reproduce the problem:
1. Open Developer Tools
2. Go to Sources, start to edit a file
3. Press Command + W on Mac or Ctrl + W on Windows
4. See that the whole page got closed

What is the expected behavior?
The following should happen when Cmd + W is pressed in the Editor panel, while an open file has focus : 

1. The opened file get closed 
2. If other file is open for editing then the next opened file should get the focus
3. This can be repeated until there is no more open files.
4. Pressing Cmd + W again should close the whole tab as it does right now.

What went wrong?
Pressing Cmd + W close immediately the whole tab regardless of the focus of the file editor in the dev tools.

Did this work before? No 

Chrome version: 52.0.2743.116  Channel: stable
OS Version: OS X 10.11.6
Flash Version:
 

Comment 1 by l...@chromium.org, Aug 17 2016

Blockedon: 174309
Cc: lushnikov@chromium.org
Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)
Closing tabs on Cmd+W and switching tabs on Cmd+Tab, Cmd+Shift+Tab is reserved for closing browser tabs.

Closing a single tab in the Sources panel view could be made possible as a custom keyboard shortcut.  A similar request for moving between files in the Sources panel was made.  Both should become possible when custom shortcuts becomes available.

Similar: https://bugs.chromium.org/p/chromium/issues/detail?id=537753
Status: WontFix (was: Assigned)
Having a Ctrl-W shortcut to behave differently wrt focus looks like a bad idea for me. Especially given that there's no clear indication of who's focused.

For now, there's Alt-W shortcut to close tab. There's also issue 174309 which might solve this and other shortcut-related concerns.

Sign in to add a comment