testlib/qasciikey: Add keypad navigation keys
Needed to prevent qasciikey.cpp from failing an assertion when Qt::Key_Select is used in tests. Change-Id: I56aa517e8f6f332636b3df106d7265677d1b33ee Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
cd3e3c0dc2
commit
bfcf47ab9d
@ -498,6 +498,11 @@ char QTest::keyToAscii(Qt::Key key)
|
||||
case Qt::Key_LaunchE : return 0; // = 0x10b0,
|
||||
case Qt::Key_LaunchF : return 0; // = 0x10b1,
|
||||
|
||||
// Keypad navigation keys
|
||||
case Qt::Key_Select : return 0; // = 0x01010000
|
||||
case Qt::Key_Yes : return 0; // = 0x01010001
|
||||
case Qt::Key_No : return 0; // = 0x01010002
|
||||
|
||||
default: QTEST_ASSERT(false); return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user