mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-01-10 22:36:38 +01:00
Close when we hit Esc at top-level
This commit is contained in:
@@ -50,6 +50,11 @@ public sealed partial class ShellPage :
|
||||
RootFrame.ForwardStack.Clear();
|
||||
SearchBox.Focus(Microsoft.UI.Xaml.FocusState.Programmatic);
|
||||
}
|
||||
else
|
||||
{
|
||||
// If we can't go back then we must be at the top and thus escape again should quit.
|
||||
WeakReferenceMessenger.Default.Send<QuitMessage>();
|
||||
}
|
||||
}
|
||||
|
||||
public void Receive(PerformCommandMessage message)
|
||||
|
||||
Reference in New Issue
Block a user