EditorShortcutsclass

objectEditorShortcuts
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public static abstract sealed class Editor.EditorShortcuts

Methods5

Showing 5 methods

public static string GetDefaultKeys(string identifier)PUBLICSTATIC

Returns the default keybind for a given identifier

ParameterTypeDescription
identifierstringThe identifier of the shortcut
Returns:string

public static string GetDisplayKeys(string identifier)PUBLICSTATIC

Returns the pretty key hint for a given identifier

ParameterTypeDescription
identifierstringThe identifier of the shortcut
Returns:string

public static string GetKeys(string identifier)PUBLICSTATIC

Returns the keybind for a given identifier

ParameterTypeDescription
identifierstringThe identifier of the shortcut
Returns:string

public static bool IsDown(string identifier)PUBLICSTATIC

Returns whether a given shortcut is currently being held down

ParameterTypeDescription
identifierstringThe identifier of the shortcut
Returns:bool

public static void ReleaseAll()PUBLICSTATIC

Returns:void

Properties2

Showing 2 properties

public static bool Editor.EditorShortcuts.AllowShortcuts { get; set; }PUBLICSTATICGETSET

Returns:bool

public static bool Editor.EditorShortcuts.PassShortcut { get; set; }PUBLICSTATICGETSET

Set this to true in a shortcut method to indicate the shortcut should not be consumed, allowing other shortcuts with the same key binding to be tried.

Returns:bool

On this page