Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.3, 5.10.0, 5.10.1
-
Android, any version
-
-
096b4590d5aefc16b9c68611fdc1463b4c173f80 (qt/qtbase/dev) e49e2a4a154d1e4730be3088550e186c79b0d0ef (qt/qtbase/6.0) f4caf0d0e5c4932055d0475559a52c85b66635b5 (qt/qtbase/5.12) 02c2609acad4df5720d1f0b44a38a7e1752109b6 (qt/tqtc-qtbase/tqtc/lts-5.15)
Description
I have a QML/C++/Java media player. If I press play/pause HW button on my Android CAR player, it is in QML incorrectly translated to Qt.Key_MediaPlay. I believe it should be Qt.Key_MediaTogglePlayPause.
If I catch the intent sent by the button within Java part of my app (a service), the button pressed is KEYCODE_MEDIA_PLAY_PAUSE. I also confirmed it on a phone by sending
adb shell input keyevent 85
. Again in QML it is Qt.Key_MediaPlay and not Qt.Key_MediaTogglePlayPause.