Fix key codes on mac.

Qt key codes match the unicode character in upper case format.

Change-Id: I92b43463921e71f2607e569ba7ee23d6f844c50a
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
This commit is contained in:
Zeno Albisser 2012-01-07 16:37:07 +01:00 committed by Qt by Nokia
parent 39a052c664
commit 1f6f1de163

View File

@ -264,7 +264,7 @@ Qt::Key qt_mac_cocoaKey2QtKey(QChar keyCode)
{ {
const KeyPair *i = qBinaryFind(entries, end, keyCode); const KeyPair *i = qBinaryFind(entries, end, keyCode);
if (i == end) if (i == end)
return Qt::Key(keyCode.unicode()); return Qt::Key(keyCode.toUpper().unicode());
return i->qtKey; return i->qtKey;
} }