Compare commits

...
Author SHA1 Message Date
l0ng-ai 4abad32250 fix(vcs): keep focus on the commit message when the Commit window opens
Activating a tool window focuses its first field or tree one frame later
unless its content marks a preferred target. The Commit window's message
wasn't marked, so after ⌘K focused the message, the activation could move
focus to the Changes tree, depending on timing. The message is now the
window's preferred focus.
2026-11-21 03:55:12 +08:00
+1 -1
View File
@@ -1330,7 +1330,7 @@ function CommitPanel({ included }: { included: number }) {
return (
<div className={styles.commit}>
<CommitMessageField included={included} runner={runner} />
<CommitMessageField included={included} runner={runner} autoFocus />
<div className={styles.commitActions}>
<Button variant="primary" disabled={!canCommit} onClick={() => void runner.run(false)} title="⌘↩">
<T>{commitLabel(amend, checkProblems.length > 0, commitAll)}</T>