mirror of
https://github.com/desktop/desktop
synced 2024-09-18 07:32:01 +00:00
Merge pull request #15445 from desktop/fix-cmd-enter-amend
Fix cmd/control + enter shortcut while amending a commit
This commit is contained in:
parent
7cd667172c
commit
be3868e2ee
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue