s&box docs

public sealed struct Editor.KeyEvent

Information about a `Editor.Widget`s keyboard event.

Methods

Showing 1 methods

public string GetButtonCodeName()

Properties

Showing 11 properties

public bool Editor.KeyEvent.Accepted { get; set; }

public bool Editor.KeyEvent.HasAlt { get; set; }

public bool Editor.KeyEvent.HasCtrl { get; set; }

public bool Editor.KeyEvent.HasShift { get; set; }

public bool Editor.KeyEvent.IsAutoRepeat { get; set; }

Whether this key event was generated by keyboard auto-repeat.

public Editor.KeyCode Editor.KeyEvent.Key { get; set; }

The key that triggered this event.

public string Editor.KeyEvent.Name { get; set; }

The name of the key that triggered this event.

public uint Editor.KeyEvent.NativeKeyCode { get; set; }

OS specific key code that triggered this event.

public uint Editor.KeyEvent.NativeScanCode { get; set; }

The native scan code.

public string Editor.KeyEvent.Text { get; set; }

Text the `Editor.KeyEvent.Key` would type in a text field.

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.KeyEvent

On this page