Skip to content

Commit 7bec05e

Browse files
committed
1 parent 606b216 commit 7bec05e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

v2rayN/v2rayN.Desktop/Views/SubSettingWindow.axaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public SubSettingWindow()
2020
InitializeComponent();
2121

2222
menuClose.Click += menuClose_Click;
23+
Loaded += Window_Loaded;
2324
this.Closing += SubSettingWindow_Closing;
2425
this.KeyDown += SubSettingWindow_KeyDown;
2526
ViewModel = new SubSettingViewModel(UpdateViewHandler);
@@ -116,4 +117,8 @@ private void SubSettingWindow_KeyDown(object? sender, KeyEventArgs e)
116117
menuClose_Click(null, null);
117118
}
118119
}
120+
private void Window_Loaded(object? sender, RoutedEventArgs e)
121+
{
122+
lstSubscription.Focus();
123+
}
119124
}

0 commit comments

Comments
 (0)