Table of Contents

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

main Key

Shortcut(Modifiers, Key)

public Shortcut(Modifiers modifiers, Key main)

Parameters

modifiers Modifiers
main Key

Shortcut(string)

public Shortcut(string text)

Parameters

text string

Fields

Main

public readonly Key Main

Field Value

Key

Modifiers

public readonly Modifiers Modifiers

Field Value

Modifiers

Methods

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

key Key

Returns

bool

Operators

operator ==(Shortcut, Shortcut)

public static bool operator ==(Shortcut lhs, Shortcut rhs)

Parameters

lhs Shortcut
rhs Shortcut

Returns

bool

implicit operator Shortcut(Key)

public static implicit operator Shortcut(Key main)

Parameters

main Key

Returns

Shortcut

operator !=(Shortcut, Shortcut)

public static bool operator !=(Shortcut lhs, Shortcut rhs)

Parameters

lhs Shortcut
rhs Shortcut

Returns

bool