Close tab
A lot of apps let you close the active tab with ctrl+W
e.g. Chrome, Obsidian, PyCharm and other IDEs
open previously closed tab is a great addition to the close tab pattern. It’s similar to undo
The more apps support this, the more intuitive it becomes.
IDEs keep the window open if no tabs are open
Browsers tend to close the window instead.
Backlinks¶
- ctrl + W in Qt
- You can add a
QShortcut
for the ctrl-W close tab to your widget class to close the widget-window when the shortcut is pressed. This will work without interfering with Maya’s global shortcuts as long as your tool has focus.
- You can add a
- Maya script editor close tab confirmation
- In Maya’s script editor, to close tab you can middle mouse click it.