TextAreaActions

Actions used by TextArea and TextField.

TextField ignores all actions related to multi-line editing, as well as INDENT/TAB.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val CUT: Action
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

NOTE, There is a difference between TAB and INDENT. INDENT indents the current line (or multiple lines if there is a selection), regardless of where the caret is. INDENT has a KeyCombination of just the Tab key (no mods).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Actions ENTER, INDENT and UNINDENT are added a KeyEvent filters (instead of handlers). Otherwise, Tab/Shift+Tab would change the focus, and Enter would fire the Button with Button.defaultButton == true.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val TAB: Action

TAB has two behaviours. If there is a multi-line selection, then it is the same as INDENT. If there is no selection, or the selection is limited to a single line, then the current selection is replaced with a TAB character. By default, TAB has no KeyCombination, and is effectively disabled. To enable it, change INDENT's KeyCombination to null, and set TAB's KeyCombination to Key.TAB.noMods().

Link copied to clipboard
Link copied to clipboard

The opposite of INDENT. There is no opposite of TAB.

Link copied to clipboard
val UP: Action