mirror of https://github.com/2dust/v2rayN
Merge pull request #4321 from hxdhttk/hxdhttk/keyDown
Fix that editing the basic routing settings will trigger unexpected error messages.pull/4405/head
commit
2a22b65b2d
|
@ -88,6 +88,11 @@ namespace v2rayN.Views
|
||||||
|
|
||||||
private void RoutingSettingWindow_PreviewKeyDown(object sender, KeyEventArgs e)
|
private void RoutingSettingWindow_PreviewKeyDown(object sender, KeyEventArgs e)
|
||||||
{
|
{
|
||||||
|
if (ViewModel?.enableRoutingBasic ?? false)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
|
if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
|
||||||
{
|
{
|
||||||
if (e.Key == Key.A)
|
if (e.Key == Key.A)
|
||||||
|
|
Loading…
Reference in New Issue