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

QMenu Action is not triggered by numeric mnemonic entered on keypad

    XMLWordPrintable

Details

    • Windows
    • ca4334bc9 (dev), b5ba125fa (6.9), 5c36926f6 (6.8)

    Description

      When a menu item have a digit as mnemonic ( like "&1 - c:
      filename.tmp" e.g. in recent-files-submenu) then the action is not triggered with the digit if it is entered on the numeric key-pad.
      After reading the code in qmenu.cpp it is obvious why nothing happens, because the QKeyEvent has the modifier Qt::KeypadModifier, so the if-condition doesn't match.

      It would be easy to add these keys to be handled, but i'm wondering, if there is a special reason to exclude all keys on the keypad to act as menu-item mnemonic?

      Attachments

        1. main.cpp
          0.4 kB
          Michael Weghorn
        2. qmenu.diff
          0.9 kB
          Walter Scherer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Alex_S Alexander Shaya
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes