Escape key now brings up a dialog to confirm you want to stop emulation (#1044)

* Add a dialog to make sure user wants to stop emulation when esc is pressed

* Remove unneccesary space

* Fix formatting

* Remove unnessecary spaces

* Fix formatting for member of GtkDialog
This commit is contained in:
Elise 2020-03-29 14:47:37 +02:00 committed by GitHub
parent 7ad8b3ef75
commit 5c1757f7c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 1 deletions

View file

@ -138,7 +138,10 @@ namespace Ryujinx.Ui
{
if (keyboard.IsKeyDown(OpenTK.Input.Key.Escape))
{
Exit();
if (GtkDialog.CreateExitDialog())
{
Exit();
}
}
else
{