Enum cosmic_text::Action
source · pub enum Action {
}
Expand description
An action to perform on an Editor
Variants§
Previous
Move cursor to previous character (Self::Left in LTR, Self::Right in RTL)
Next
Move cursor to next character (Self::Right in LTR, Self::Left in RTL)
Left
Move cursor left
Right
Move cursor right
Up
Move cursor up
Down
Move cursor down
Home
Move cursor to start of line
End
Move cursor to end of line
PageUp
Scroll up one page
PageDown
Scroll down one page
Escape
Escape, clears selection
Insert(char)
Insert character at cursor
Enter
Create new line
Backspace
Delete text behind cursor
Delete
Delete text in front of cursor
Click
Mouse click at specified position
Drag
Mouse drag to specified position
Scroll
Scroll specified number of lines