Merge pull request #15445 from desktop/fix-cmd-enter-amend

Fix cmd/control + enter shortcut while amending a commit
This commit is contained in:
Sergio Padrino 2022-10-12 11:53:34 +02:00 committed by tidy-dev
parent 7cd667172c
commit be3868e2ee

View file

@ -351,7 +351,7 @@ export class CommitMessage extends React.Component<
if (
isShortcutKey &&
event.key === 'Enter' &&
this.canCommit() &&
(this.canCommit() || this.canAmend()) &&
this.canExcecuteCommitShortcut()
) {
this.createCommit()