Skip to content

TextboxBindings

interludesoftware.tick

Interlude.Tick

TextboxBindings Class

Bindings for the textbox widget. Abstract — concrete subclasses (LegacyTextboxBindings / InputSystemTextboxBindings) bind native keys and read input directly so there is no cross-system translation.

All actions are pressed-this-frame semantics. Submit() triggers when the configured submit key fires (e.g. Return). Modifiers (Ctrl / Shift / Alt) are part of each binding so the standard shortcuts (Ctrl+C / Ctrl+V / …) can be rebound or moved to Cmd on macOS.

public abstract class TextboxBindings

Inheritance System.Object → TextboxBindings

Derived
InputSystemTextboxBindings
LegacyTextboxBindings

Properties

TextboxBindings.Default Property

Backend-appropriate default bindings.

public static Interlude.Tick.TextboxBindings Default { get; }

Property Value

TextboxBindings

Methods

TextboxBindings.CaretEnd() Method

Returns true on the frame the caret-end key fires.

public abstract bool CaretEnd();

Returns

System.Boolean

TextboxBindings.CaretHome() Method

Returns true on the frame the caret-home key fires.

public abstract bool CaretHome();

Returns

System.Boolean

TextboxBindings.CaretLeft() Method

Returns true on the frame the caret-left key fires.

public abstract bool CaretLeft();

Returns

System.Boolean

TextboxBindings.CaretRight() Method

Returns true on the frame the caret-right key fires.

public abstract bool CaretRight();

Returns

System.Boolean

TextboxBindings.Copy() Method

Returns true on the frame the copy shortcut fires.

public abstract bool Copy();

Returns

System.Boolean

TextboxBindings.Cut() Method

Returns true on the frame the cut shortcut fires.

public abstract bool Cut();

Returns

System.Boolean

TextboxBindings.DeleteBack() Method

Returns true on the frame the delete-backward key fires.

public abstract bool DeleteBack();

Returns

System.Boolean

TextboxBindings.DeleteForward() Method

Returns true on the frame the delete-forward key fires.

public abstract bool DeleteForward();

Returns

System.Boolean

TextboxBindings.Paste() Method

Returns true on the frame the paste shortcut fires.

public abstract bool Paste();

Returns

System.Boolean

TextboxBindings.SelectAll() Method

Returns true on the frame the select-all shortcut fires.

public abstract bool SelectAll();

Returns

System.Boolean

TextboxBindings.Submit() Method

Returns true on the frame the submit key fires.

public abstract bool Submit();

Returns

System.Boolean

TextboxBindings.Update() Method

Called once per frame so backends can update per-frame state.

public virtual void Update();