qds: add feature to Key_Escape the splashscreen

Change-Id: I815b15a9234e693518feb1ff6b218dc607bd3578
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Tim Jenssen
2022-09-21 15:53:24 +02:00
parent a527ceff60
commit 39e3ae0338
2 changed files with 9 additions and 0 deletions

View File

@@ -27,6 +27,14 @@ import QtQuick 2.0
Item { Item {
id: root id: root
focus: true
Keys.onPressed: (event)=> {
if (event.key == Qt.Key_Escape)
root.doNotShowAgain = false
root.closeClicked()
}
width: 600 * root.mainScale width: 600 * root.mainScale
height: 720 * root.mainScale height: 720 * root.mainScale

View File

@@ -576,6 +576,7 @@ void StudioWelcomePlugin::extensionsInitialized()
s_view->show(); s_view->show();
s_view->raise(); s_view->raise();
s_view->setFocus();
}); });
} }
} }