fix(tui): default Ctrl+Z to undo on Windows (#21138)

This commit is contained in:
Luke Parker
2026-04-06 12:38:35 +10:00
committed by GitHub
parent 9965d385de
commit 77a462c930
4 changed files with 61 additions and 2 deletions

View File

@@ -148,5 +148,7 @@ const TIPS = [
"Use {highlight}/review{/highlight} to review uncommitted changes, branches, or PRs",
"Run {highlight}/help{/highlight} or {highlight}Ctrl+X H{/highlight} to show the help dialog",
"Use {highlight}/rename{/highlight} to rename the current session",
"Press {highlight}Ctrl+Z{/highlight} to suspend the terminal and return to your shell",
...(process.platform === "win32"
? ["Press {highlight}Ctrl+Z{/highlight} to undo changes in your prompt"]
: ["Press {highlight}Ctrl+Z{/highlight} to suspend the terminal and return to your shell"]),
]