Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.1
-
Windows 10
-
34af9fa0dc38ec19d85c0ef2464715b1e9661233 (qtbase/5.12, 28.9.2018, 5.12.0)
Description
- Using Microsoft Mouse and Keyboard Center, reprogram one key (eg Mail) to trigger "SKip to next media track"
- A shortcut containing the keys Qt::Key_MediaNext or Qt::Key_MediaPrevious is called 2 times instead of just once.
A simple way to see this issue:
#include <QtWidgets> int main(int argc, char **argv) { QApplication app(argc, argv); QDialog *dialog = new QDialog(); QShortcut *shortcut = new QShortcut(dialog); shortcut->setKey(Qt::Key_MediaNext); QObject::connect(shortcut, &QShortcut::activated, []() { qDebug() << "shortcut activated"; }); dialog->show(); return app.exec(); }
The result when the key is pressed:
shortcut activated shortcut activated
Attachments
Issue Links
- relates to
-
QTBUG-57198 Back / Forward buttons on mouse also cause keyboard event for the same event always
- Closed
-
QTBUG-48117 [Windows]: When pushing one of the extra buttons on a mouse then it should send WM_APPCOMMAND to the application but it does not
- Closed