Add 'cut' command and key binding

This commit is contained in:
EnumDev committed 2025-06-16 14:14:18 +03:00
1 parent fe16b5c067
commit 3025fee2bb
4 files changed
+82 -2

No files matched your search

+4 -2
View File
@@ -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()