Struct Shortcut
- Namespace
- Lime
- Assembly
- Lime.dll
Represents combination of a key with keyboard modifiers used to trigger an action.
public struct Shortcut
- Inherited Members
Constructors
Shortcut(Key)
public Shortcut(Key main)
Parameters
mainKey
Shortcut(Modifiers, Key)
public Shortcut(Modifiers modifiers, Key main)
Parameters
Shortcut(string)
public Shortcut(string text)
Parameters
textstring
Fields
Main
public readonly Key Main
Field Value
Modifiers
public readonly Modifiers Modifiers
Field Value
Methods
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
ValidateMainKey(Key)
public static bool ValidateMainKey(Key key)
Parameters
keyKey
Returns
Operators
operator ==(Shortcut, Shortcut)
public static bool operator ==(Shortcut lhs, Shortcut rhs)
Parameters
Returns
implicit operator Shortcut(Key)
public static implicit operator Shortcut(Key main)
Parameters
mainKey
Returns
operator !=(Shortcut, Shortcut)
public static bool operator !=(Shortcut lhs, Shortcut rhs)