Details
-
Bug
-
Resolution: Cannot Reproduce
-
P1: Critical
-
5.6.0 Alpha
-
None
-
OS X 10.10
Description
#include <QAction> #include <QApplication> #include <QDebug> #include <QWidget> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWidget w; auto action = new QAction(&w); #ifdef Q_OS_MAC action->setShortcut(QString::fromLatin1("Alt+Tab")); #else action->setShortcut(QString::fromLatin1("Ctrl+Tab")); #endif QObject::connect(action, &QAction::triggered, &w, []() { qDebug() << QApplication::keyboardModifiers(); }); w.addAction(action); w.show(); return a.exec(); }
Run the application and press & hold Opt,
press and release tab while still holding Opt.
Expected: QFlags<Qt::KeyboardModifiers>(AltModifier)
Actual: QFlags<Qt::KeyboardModifiers>(NoModifier)
Attachments
Issue Links
- is required for
-
QTBUG-48845 Issues to be fixed before Qt 5.6.0 RC
- Closed
- relates to
-
QTBUG-47122 [REG 5.4 -> 5.5] Shortcuts needing implicit shift broken
- Closed