Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.7.2
-
None
-
Mac OS X
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(...).