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
hluk 2013-04-22 21:07:36 +02:00 committed by The Qt Project
parent 106dc410e9
commit 9e035d9de2
1 changed files with 1 additions and 1 deletions

View File

@ -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]) {