We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c1973f commit 27f4767Copy full SHA for 27f4767
UnityHubNative.Net/MainWindow.cs
@@ -27,6 +27,7 @@ class MainWindow : Window
27
28
static DockPanel s_transparentPanel;
29
static Slider s_backgroundBlurIntensitySlider;
30
+ static private Key s_lastKey;
31
32
public MainWindow(object data)
33
{
@@ -49,6 +50,10 @@ public MainWindow(object data)
49
50
protected override void OnKeyDown(KeyEventArgs e)
51
52
base.OnKeyDown(e);
53
+ if (e.Key == Key.Escape && s_lastKey == Key.Escape)
54
+ Close();
55
+
56
+ s_lastKey = e.Key;
57
58
// focus on searchbar if typed a character
59
if (e.KeyModifiers is KeyModifiers.None or KeyModifiers.Shift && (int)e.Key >= (int)Key.A && (int)e.Key <= (int)Key.Z)
0 commit comments