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

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.0.0
    • Fix Version/s: None
    • Labels:
      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

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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            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:

                Gerrit Reviews

                There are no open Gerrit changes