Add HotkeyReference.IsActivatedBy method.
This commit is contained in:
@@ -130,7 +130,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
|
||||
public override bool HandleKeyPress(KeyInput e)
|
||||
{
|
||||
if (Hotkey.FromKeyInput(e) != Key.GetValue() || e.Event != KeyInputEvent.Down || (DisableKeyRepeat && e.IsRepeat))
|
||||
if (!Key.IsActivatedBy(e) || e.Event != KeyInputEvent.Down || (DisableKeyRepeat && e.IsRepeat))
|
||||
return false;
|
||||
|
||||
if (!IsDisabled())
|
||||
|
||||
Reference in New Issue
Block a user