Command+W does not close window on Mac

Issue #956 open
Former user created an issue

Hi, would there be an easy way to implement this feature for Macs? Thanks!

Comments (7)

  1. Tey'

    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});
        /* ... */
    }
    
  2. Chris Maria

    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.

  3. Log in to comment