add undo/redo keybindings, default them on macOS

This commit is contained in:
Mitchell Hashimoto
2025-06-06 11:34:33 -07:00
parent e1847da139
commit b044f4864a
10 changed files with 132 additions and 10 deletions

View File

@@ -409,6 +409,18 @@ fn actionCommands(action: Action.Key) []const Command {
.description = "Check for updates to the application.",
}},
.undo => comptime &.{.{
.action = .undo,
.title = "Undo",
.description = "Undo the last action.",
}},
.redo => comptime &.{.{
.action = .redo,
.title = "Redo",
.description = "Redo the last undone action.",
}},
.quit => comptime &.{.{
.action = .quit,
.title = "Quit",