mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Add cut, copy, and paste to the Edit menu (#440)
* Add cut * Hook up edit dropdown * Use copy message
This commit is contained in:
parent
fd1ddfc41e
commit
451c9fcd46
5 changed files with 29 additions and 3 deletions
|
@ -109,9 +109,9 @@ function makeMenuEntries(editor: EditorState): MenuListEntries {
|
|||
{ label: "Redo", shortcut: ["KeyControl", "KeyShift", "KeyZ"], action: async () => editor.instance.redo() },
|
||||
],
|
||||
[
|
||||
{ label: "Cut", shortcut: ["KeyControl", "KeyX"] },
|
||||
{ label: "Copy", icon: "Copy", shortcut: ["KeyControl", "KeyC"] },
|
||||
{ label: "Paste", icon: "Paste", shortcut: ["KeyControl", "KeyV"] },
|
||||
{ label: "Cut", shortcut: ["KeyControl", "KeyX"], action: async () => editor.instance.cut() },
|
||||
{ label: "Copy", icon: "Copy", shortcut: ["KeyControl", "KeyC"], action: async () => editor.instance.copy() },
|
||||
{ label: "Paste", icon: "Paste", shortcut: ["KeyControl", "KeyV"], action: async () => editor.instance.paste() },
|
||||
],
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue