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

QMenu highlighting behaves differently when menu item activated with shortcut versus Key_Return.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.0.0
    • None

    Description

      After a menu item is activated by navigating to it with arrow keys and then pressing the Return key, no menu item will be highlighted and activeAction() will return null. However, if the same menu item is activated by a keyboard shortcut, the menu item becomes highlighted and will be returned by activeAction().

      For users, this inconsistent behaviour isn't very noticeable (because most menus close when a menu item is activated), but this difference does foul up the qmenu autotest (tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp), as shown by a QEXPECT_FAIL in the keyboardNavigation() test function.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: