Command+W does not close window on Mac
Issue #956
open
Hi, would there be an easy way to implement this feature for Macs? Thanks!
Comments (7)
-
repo owner -
Based on QTBUG-42242, it’s missing a
Close Window
menu entry with the corresponding shortcut associated. -
repo owner - changed status to wontfix
-
As far as I understand, the fix is as simple as replacing:
void MainWindow::createActionShortcuts() { /* ... */ m_actions.sessionQuit->setShortcut(Qt::CTRL + Qt::Key_Q); /* ... */ }
with something like:
void MainWindow::createActionShortcuts() { /* ... */ m_actions.sessionQuit->setShortcuts({Qt::CTRL + Qt::Key_Q, QKeySequence::Close}); /* ... */ }
-
repo owner - changed status to open
-
repo owner - changed milestone to 1.0
-
I personally prefer the current behavior where Command+W does nothing. My understanding is that Command+W is for apps that have multiple panes or windows to close, like browser tabs or the Finder file manager. Since speedcrunch runs with a single instance and has no tabs or separate windows, I think the current behavior is expected.
- Log in to comment
@Samuel Gaist Thoughts?