add 1 and 2 key to settings menu as TAB
This commit is contained in:
parent
2592d3a6f8
commit
34f8f0759a
@ -1423,4 +1423,13 @@ void f1x::openauto::autoapp::ui::SettingsWindow::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
f1x::openauto::autoapp::ui::SettingsWindow::close();
|
||||
}
|
||||
if (event->key() == Qt::Key_Return || event->key() == Qt::Key_Return) {
|
||||
QApplication::postEvent (QApplication::focusWidget(), new QKeyEvent ( QEvent::KeyPress, Qt::Key_Space, Qt::NoModifier));
|
||||
}
|
||||
if (event->key() == Qt::Key_1) {
|
||||
QApplication::postEvent (QApplication::focusWidget(), new QKeyEvent ( QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier));
|
||||
}
|
||||
if (event->key() == Qt::Key_2) {
|
||||
QApplication::postEvent (QApplication::focusWidget(), new QKeyEvent ( QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user