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

Shortcuts don't trigger actions in some cases

    XMLWordPrintable

Details

    Description

      QActions in top level menus with a shortcut consisting of a single key stroke (e.g. 'C') cannot be triggered by shortcut.

      QActions in sub-menus with a shortcut consisting of a single or multiple key strokes (e.g. 'D,E' or 'F') cannot be triggered by shortcut.

      Complete minimalistic example is attached.

      • Start 'shortcut' binary
      • Press 'A' key, then 'B' key -> 'Action triggered' is printed to stderr
      • Press 'C' key -> Nothing happens ('Action triggered' should be printed to stderr)
      • Press 'D' key, then 'E' key -> Nothing happens ('Action triggered' should be printed to stderr)
      • Press 'F' key -> Nothing happens ('Action triggered' should be printed to stderr)

      Attachments

        1. main.cpp
          0.2 kB
        2. mainwindow.h
          2 kB
        3. Screen Shot 2014-05-13 at 23.54.51.png
          Screen Shot 2014-05-13 at 23.54.51.png
          40 kB
        4. shortcut.pro
          0.1 kB

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              drew Drew
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes