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>bb10
parent
39a052c664
commit
1f6f1de163
|
|
@ -264,7 +264,7 @@ Qt::Key qt_mac_cocoaKey2QtKey(QChar keyCode)
|
|||
{
|
||||
const KeyPair *i = qBinaryFind(entries, end, keyCode);
|
||||
if (i == end)
|
||||
return Qt::Key(keyCode.unicode());
|
||||
return Qt::Key(keyCode.toUpper().unicode());
|
||||
return i->qtKey;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue