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

QKeySequence silently discards unknown key modifiers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.3.4
    • Other
    • None

    Description

      Consider the following example:

      QWidget w;
      QAction a("foo", &w);

      a.setShortcut(QKeySequence("Win+E"));

      w.addAction(&a);
      w.show();

      QObject::connect(&a, SIGNAL(triggered()), &w, SLOT(close()));

      Since "Win" is not a recognized key modifier, the expected result is that the shortcut does not work.

      The actual result is that the action is triggered when the 'E' key is pressed.

      Attachments

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

        Activity

          People

            bachewii Jens
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes