Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.5.0
-
ArchLinux - German keyboard layout
Windows - UK keyboard layout with CTRL++ (as it needs a shift to trigger to get the +)
-
4067bbc24cf7a6d3058387225d9e67ad093991cd
Description
Consider this small application:
#include <QApplication> #include <QKeySequence> #include <QPushButton> int main(int argc, char *argv[]) { QApplication app(argc, argv); QPushButton b("Press keys"); b.setShortcut(QKeySequence(Qt::Key_7 | Qt::CTRL | Qt::SHIFT)); QObject::connect(&b, &QPushButton::clicked, [](bool) { qApp->quit(); }); b.show(); return app.exec(); }
With Qt 5.4, the app exits when pressing Ctrl+Shift+7.
With Qt 5.5, nothing happens. It does quit, however, if I change the shortcut to QKeySequence(Qt::Key_Slash | Qt::CTRL | Qt::SHIFT) (I'm using German keyboard layout).
I don't think this is what users expect.
Attachments
Issue Links
- is duplicated by
-
QTBUG-47352 Problem with shortcuts on non-english layouts
- Closed
- is required for
-
QTBUG-46863 Issues to be fixed before Qt 5.5.1
- Closed
- relates to
-
QTBUG-47122 [REG 5.4 -> 5.5] Shortcuts needing implicit shift broken
- Closed