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

cocoaKey2QtKey (in qt_cocoa_helpers_mac.mm) doesn't work properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.2
    • None
    • Mac OS X
    • macOS

    Description

      If I set my keyboard input mode to (say) Hiragana, then listen for a key press or release event on a widget, the QKeyEvent's key() function incorrectly returns the character code (27) for Escape, as opposed to the expected value of Qt::Key_Escape. This may well affect other keys too.

      This is going wrong because you're doing a binary search on an unsorted list. In the inverse function (i.e. qtKey2CocoaKey(..)) you're correctly creating a static list that is sorted correctly, but you're failing to do a similar thing in cocoaKey2QtKey(...).

      Attachments

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

        Activity

          People

            waterdomain Water Domain (Inactive)
            meastwood Michael Eastwood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes