Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.5.3, 4.6.0
-
None
Description
When creating a shortcut that uses Space then the accelerator text does not appear correctly on Mac, instead of appearing as ALT+Space, it shows as ALT+some strange character.
Since native apps seem to show ALT+Space just fine then it should work in Qt too.
Patch to reproduce this:
--- a/examples/mainwindows/application/mainwindow.cpp +++ b/examples/mainwindows/application/mainwindow.cpp @@ -157,7 +157,7 @@ void MainWindow::createActions() //! [19] openAct = new QAction(QIcon(":/images/open.png"), tr("&Open..."), this); - openAct->setShortcuts(QKeySequence::Open); + openAct->setShortcut(Qt::ALT + Qt::Key_Space); openAct->setStatusTip(tr("Open an existing file")); connect(openAct, SIGNAL(triggered()), this, SLOT(open()));