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

Menu key events not propagated in Android QT

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.2.0 Beta1
    • QPA
    • None
    • Android 4.1.2, Samsung Galaxy S3 GT-I9305
    • Android

    Description

      Application doesn't receive menu key event. Other key events can be received and handled. Even though android doesn't require devices to have menu key but for those that actually have it would be nice to get the key press / release event.

      Test application:

      import QtQuick 2.2

      Rectangle {
      id: first
      width: 360
      height: 360
      Rectangle {
      id: second
      anchors.fill: parent
      focus: true
      Keys.onReleased: {
      event.accepted = true;
      display.text = event.key
      console.log("Key.onReleased:" + event.key)
      switch(event.key)

      { case Qt.Key_Back: console.log("Back key catched!"); break; }

      }
      Text

      { id: display text: "Hello World" anchors.centerIn: parent }

      MouseArea {
      anchors.fill: parent
      onClicked:

      { Qt.quit(); }

      }
      }
      }

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              ravila Risto Avila
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes