Use Qt::Key_unknown for unknown keys instead of -1 with xcb
Task-number: QTBUG-3515 Change-Id: I9875437744455a2cce2da075c1fa6e2a91f55b63 Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>bb10
parent
106dc410e9
commit
9e035d9de2
|
|
@ -736,7 +736,7 @@ Qt::KeyboardModifiers QXcbKeyboard::translateModifiers(int s)
|
|||
|
||||
int QXcbKeyboard::translateKeySym(uint key) const
|
||||
{
|
||||
int code = -1;
|
||||
int code = Qt::Key_unknown;
|
||||
int i = 0; // any other keys
|
||||
while (KeyTbl[i]) {
|
||||
if (key == KeyTbl[i]) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue