Browse Source

Merge pull request #1 from hvvvvvvv/hvvvvvvv-patch-1

Update HotkeyHandler.cs
pull/3989/head
咸鱼而已 1 year ago committed by GitHub
parent
commit
59ada594a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      v2rayN/v2rayN/Handler/HotkeyHandler.cs

8
v2rayN/v2rayN/Handler/HotkeyHandler.cs

@ -113,9 +113,9 @@ namespace v2rayN.Handler
var mdif = (KeyModifiers)_fsModifiers;
var key = KeyInterop.KeyFromVirtualKey(_vkey);
if ((mdif | KeyModifiers.Ctrl) == KeyModifiers.Ctrl) _hotkeyStr.Append($"{KeyModifiers.Ctrl}+");
if ((mdif | KeyModifiers.Alt) == KeyModifiers.Alt) _hotkeyStr.Append($"{KeyModifiers.Alt}+");
if ((mdif | KeyModifiers.Shift) == KeyModifiers.Shift) _hotkeyStr.Append($"{KeyModifiers.Shift}+");
if ((mdif & KeyModifiers.Ctrl) == KeyModifiers.Ctrl) _hotkeyStr.Append($"{KeyModifiers.Ctrl}+");
if ((mdif & KeyModifiers.Alt) == KeyModifiers.Alt) _hotkeyStr.Append($"{KeyModifiers.Alt}+");
if ((mdif & KeyModifiers.Shift) == KeyModifiers.Shift) _hotkeyStr.Append($"{KeyModifiers.Shift}+");
_hotkeyStr.Append(key.ToString());
foreach (var name in _hotkeyTriggerDic[hotkeycode])
@ -177,4 +177,4 @@ namespace v2rayN.Handler
NoRepeat = 0x4000
}
}
}
}

Loading…
Cancel
Save