Skip to main content

CaretKeys class

Namespace: Arlecchino.Editing · Assembly: Arlecchino

The keys that take the caret about a field of one line, by a symbol, by a word or to either end. Any of them drops whatever was selected, which is what tells them from the keys with Shift held.

public static class CaretKeys

Methods

MemberSummary
Moved(ITextEntry, ArlecchinoKeymap, KeyPress)Moves the caret where the key says, leaving the text as it is.

Methods in detail

Moved(ITextEntry, ArlecchinoKeymap, KeyPress)

public static bool Moved(ITextEntry entry, ArlecchinoKeymap keymap, KeyPress key);

Moves the caret where the key says, leaving the text as it is.

Parameters

NameTypeDescription
entryITextEntryThe line being edited.
keymapArlecchinoKeymapThe keys the application obeys.
keyKeyPressThe key that arrived.

Returns booltrue when the key was one of these and has been dealt with.