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

MenuItem is not triggered by the "Enter" key

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Fixed
    • Affects Version/s: 5.10.0, 5.10.1
    • Fix Version/s: 5.12.3
    • Component/s: Quick: Controls 2
    • Environment:
      Qt 5.10.1 

      Linux archlinux 4.15.10-1-ARCH

       
    • Commits:
      05eb8127594f0d40247e8c84a4704277dd12d16e

      Description

      Originally my question was here: https://stackoverflow.com/questions/49436480/qml-menuitem-trigger-by-enter-and-keyboard-events-forwarding-dont-work

       

      As you can see, MenuItem should be triggered by "Enter" key, which was working in Qt 5.6. But is not working in 5.10.1 with Quick Controls 2.

      We dug down a bit more, and colleague has suggested a fix: https://github.com/lirios/browser/pull/81#issuecomment-375603473

      Repro example is attached

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              johnpoison Ivan Fateev
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes