added ascii translations to qasciikey for keyup and keydown
Change-Id: I7645392b437bdaa5e981dbf07cac70ee1653b624 Reviewed-on: http://codereview.qt-project.org/4689 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
parent
fa42faaee5
commit
d96057f8f4
@ -59,6 +59,8 @@ Qt::Key QTest::asciiToKey(char ascii)
|
||||
case 0x0b: return Qt::Key_Backtab;
|
||||
case 0x0d: return Qt::Key_Return;
|
||||
case 0x1b: return Qt::Key_Escape;
|
||||
case 0x13: return Qt::Key_Up;
|
||||
case 0x15: return Qt::Key_Down;
|
||||
case 0x20: return Qt::Key_Space;
|
||||
case 0x21: return Qt::Key_Exclam;
|
||||
case 0x22: return Qt::Key_QuoteDbl;
|
||||
|
@ -162,7 +162,6 @@ namespace QTest
|
||||
{
|
||||
QTEST_ASSERT(qApp);
|
||||
QTEST_ASSERT(window);
|
||||
QTEST_ASSERT(window->windowState() == Qt::WindowActive);
|
||||
|
||||
if (action == Click) {
|
||||
sendKeyEvent(Press, window, code, text, modifier, delay);
|
||||
|
Loading…
Reference in New Issue
Block a user