Back to API Reference
Class

SingleLineBehavior

Inherits:InputBehavior

Single-line form-field semantics, matching the web <input> contract: every Enter press submits, newlines are stripped from all inserted text (typing, paste, IME commit — multi-line pastes are joined), and submit releases focus unless KeepFocusOnSubmit. Without it the editor is a document — Enter inserts a newline. Pair with the UniText's Word Wrap turned off for the classic horizontally-scrolling field.

Derived Types(1)

Types that inherit from SingleLineBehavior.

protected override void OnEnable()
protected override void OnDisable()