Merge pull request #27922 from peppy/quick-exit-from-results

Add ability to quick exit from results screen
This commit is contained in:
Dan Balasescu 2024-04-22 16:01:13 +09:00 committed by GitHub
commit 89a4a6878f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -390,6 +390,15 @@ public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
switch (e.Action)
{
case GlobalAction.QuickExit:
if (this.IsCurrentScreen())
{
this.Exit();
return true;
}
break;
case GlobalAction.Select:
StatisticsPanel.ToggleVisibility();
return true;