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

QMenu Action is not triggered by numeric mnemonic entered on keypad

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.6
    • Widgets: Main Window
    • None
    • Windows

    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

        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:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes