mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-10-31 11:31:48 +00:00
Add 'cut' command and key binding
This commit is contained in:
1 parent
fe16b5c067
commit
3025fee2bb
4 files changed
+82
-2
No files matched your search
+4
-2
@@ -56,11 +56,13 @@ func initTopMenu() {
|
||||
y++
|
||||
}
|
||||
|
||||
d := CreateDropdownMenu([]string{"Copy", "Paste"}, 0, y, 0, func(i int) {
|
||||
d := CreateDropdownMenu([]string{"Cut", "Copy", "Paste"}, 0, y, 0, func(i int) {
|
||||
switch i {
|
||||
case 0:
|
||||
RunCommand(window, "copy")
|
||||
RunCommand(window, "cut")
|
||||
case 1:
|
||||
RunCommand(window, "copy")
|
||||
case 2:
|
||||
RunCommand(window, "paste")
|
||||
}
|
||||
ClearDropdowns()
|
||||
|
||||
Reference in new issue
Block a user