Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.2.0
-
None
-
Windows 8 x64
Qt 5.2.0 x64
Description
void Editor::keyPressEvent(QKeyEvent *event) { Qt::KeyboardModifiers keyMod = QApplication::keyboardModifiers(); bool isCtrl = keyMod.testFlag(Qt::ControlModifier); bool isAlt = keyMod.testFlag(Qt::AltModifier); bool isShift = keyMod.testFlag(Qt::ShiftModifier); qDebug()<<isCtrl; }
above code worked fine in Qt 5.1.1 but in Qt 5.2.0 isCtrl, isAlt, isShift is always set to false.
Attachments
Issue Links
- relates to
-
QTBUG-36894 QApplication::keyboardModifiers seems to be inverted
- Closed
-
QTBUG-60694 EGLFS: Keyboard modifiers are incorrect on mouse events
- Closed