Key overrides for selecting states

This commit is contained in:
Jeffrey Pfau 2014-10-16 00:18:58 -07:00
parent a8d87a7979
commit d52be5b3d9
1 changed files with 11 additions and 0 deletions

View File

@ -64,6 +64,17 @@ bool LoadSaveState::eventFilter(QObject*, QEvent* event) {
case Qt::Key_Right:
column += 1;
break;
case Qt::Key_1:
case Qt::Key_2:
case Qt::Key_3:
case Qt::Key_4:
case Qt::Key_5:
case Qt::Key_6:
case Qt::Key_7:
case Qt::Key_8:
case Qt::Key_9:
triggerState(static_cast<QKeyEvent*>(event)->key() - Qt::Key_1 + 1);
break;
case Qt::Key_Escape:
close();
break;