Merge pull request #2196 from DarkLordZach/web-applet-esc

web_browser: Add shortcut to Enter key to exit applet
This commit is contained in:
bunnei
2019-03-07 15:32:32 -05:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@ -340,6 +340,11 @@ void GMainWindow::WebBrowserOpenPage(std::string_view filename, std::string_view
.arg(QString::fromStdString(std::to_string(key_code))));
};
QMessageBox::information(
this, tr("Exit"),
tr("To exit the web application, use the game provided controls to select exit, select the "
"'Exit Web Applet' option in the menu bar, or press the 'Enter' key."));
bool running_exit_check = false;
while (!finished) {
QApplication::processEvents();