Fix Cmd/Ctrl + Enter in the composer triggering confirmation dialog action (#36870)

This commit is contained in:
diondiondion 2025-11-14 10:39:42 +01:00 committed by GitHub
parent 98c8c1ebd2
commit 6e294828d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,6 +102,7 @@ class ComposeForm extends ImmutablePureComponent {
handleKeyDownPost = (e) => { handleKeyDownPost = (e) => {
if (e.key.toLowerCase() === 'enter' && (e.ctrlKey || e.metaKey)) { if (e.key.toLowerCase() === 'enter' && (e.ctrlKey || e.metaKey)) {
this.handleSubmit(); this.handleSubmit();
e.preventDefault();
} }
this.blurOnEscape(e); this.blurOnEscape(e);
}; };