Do not execute keyboard shorcut on basic routing setting window.

This commit is contained in:
Minghao Hu 2023-10-12 05:05:30 +08:00
parent 2652beed88
commit 31bcbd0e13

View file

@ -88,6 +88,11 @@ namespace v2rayN.Views
private void RoutingSettingWindow_PreviewKeyDown(object sender, KeyEventArgs e)
{
if (ViewModel?.enableRoutingBasic ?? false)
{
return;
}
if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
{
if (e.Key == Key.A)