From 31bcbd0e13e27f1c504f7fafaafcda35522423ee Mon Sep 17 00:00:00 2001 From: Minghao Hu Date: Thu, 12 Oct 2023 05:05:30 +0800 Subject: [PATCH] Do not execute keyboard shorcut on basic routing setting window. --- v2rayN/v2rayN/Views/RoutingSettingWindow.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v2rayN/v2rayN/Views/RoutingSettingWindow.xaml.cs b/v2rayN/v2rayN/Views/RoutingSettingWindow.xaml.cs index e1509d98..55a18212 100644 --- a/v2rayN/v2rayN/Views/RoutingSettingWindow.xaml.cs +++ b/v2rayN/v2rayN/Views/RoutingSettingWindow.xaml.cs @@ -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)