summaryrefslogtreecommitdiffstats
path: root/core/src/text
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/text')
-rw-r--r--core/src/text/editor.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/src/text/editor.rs b/core/src/text/editor.rs
index 0f439c8d..2144715f 100644
--- a/core/src/text/editor.rs
+++ b/core/src/text/editor.rs
@@ -47,13 +47,18 @@ pub enum Action {
Select(Motion),
SelectWord,
SelectLine,
+ Edit(Edit),
+ Click(Point),
+ Drag(Point),
+}
+
+#[derive(Debug, Clone, PartialEq)]
+pub enum Edit {
Insert(char),
Paste(Arc<String>),
Enter,
Backspace,
Delete,
- Click(Point),
- Drag(Point),
}
#[derive(Debug, Clone, Copy, PartialEq)]