ctrl + w无法关闭标签页 #8951

Closed
opened 2026-01-31 01:42:16 +00:00 by claunia · 2 comments
Owner

Originally created by @yangyongyongyong on GitHub (Jun 10, 2020).

Description of the new feature/enhancement

Proposed technical implementation details (optional)

Originally created by @yangyongyongyong on GitHub (Jun 10, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@zh-impact commented on GitHub (Jun 10, 2020):

多半是被其他程序占用了热键。我遇到其他的快捷键不工作的情况,自己摸索了半天,解决了。https://github.com/microsoft/terminal/issues/6439

@zh-impact commented on GitHub (Jun 10, 2020): 多半是被其他程序占用了热键。我遇到其他的快捷键不工作的情况,自己摸索了半天,解决了。https://github.com/microsoft/terminal/issues/6439
Author
Owner

@zadjii-msft commented on GitHub (Jun 10, 2020):

The closePane command (which can be used for closing tabs as well) is bound to ctrl+shift+w by default. This is because there are other commandline applications, like nano, that use ctrl+w as a keybinding themselves.

If you'd like to bind it to ctrl+w instead, add the following to your settings:

{ "command": "closePane", "keys": "ctrl+w" },
@zadjii-msft commented on GitHub (Jun 10, 2020): The `closePane` command (which can be used for closing tabs as well) is bound to <kbd>ctrl+shift+w</kbd> [by default](https://github.com/microsoft/terminal/blob/master/src/cascadia/TerminalApp/defaults.json#L311). This is because there are other commandline applications, like `nano`, that use <kbd>ctrl+w</kbd> as a keybinding themselves. If you'd like to bind it to <kbd>ctrl+w</kbd> instead, add the following to your settings: ```json { "command": "closePane", "keys": "ctrl+w" }, ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8951