Add HotkeyReference.IsActivatedBy method.
This commit is contained in:
@@ -45,5 +45,11 @@ namespace OpenRA
|
||||
{
|
||||
return getValue();
|
||||
}
|
||||
|
||||
public bool IsActivatedBy(KeyInput e)
|
||||
{
|
||||
var currentValue = getValue();
|
||||
return currentValue.Key == e.Key && currentValue.Modifiers == e.Modifiers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user