Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66448

Android KEYCODE_MEDIA_PLAY_PAUSE is incorrectly translated to Qt.Key_MediaPlay in QML

    XMLWordPrintable

Details

    • Android
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            piotrmi Piotr Mikolajczyk
            jech Vladimír Jícha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes