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

QDialog::keyPressEvent does not support Cmd-Period under Cocoa

    XMLWordPrintable

Details

    • 468a37fa2053f91dd64c182b834dc636ff77c7cc

    Description

      QDialog::keyPressEvent looks for Cmd-Period on the Mac, treating it as a shortcut to invoke reject(), as per Escape.

      However this keystroke is special-cased by Cocoa, and is never sent directly to applications (so will never be received by QCocoaView:keyDown).

      Instead QCocoaView needs to handle cancelOperation: to catch this action, and probably process it by generating a synthetic Cmd-Period keystroke.

      Attachments

        Issue Links

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

          Activity

            People

              paeglis Gatis Paeglis
              refnum Dair Grant
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes