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

This commit is contained in:
diondiondion authored and GitHub committed 2025-11-14 09:39:42 +00:00
1 parent 98c8c1ebd2
commit 6e294828d6
1 file changed
+1
@@ -102,6 +102,7 @@ class ComposeForm extends ImmutablePureComponent {
handleKeyDownPost = (e) => {
if (e.key.toLowerCase() === 'enter' && (e.ctrlKey || e.metaKey)) {
this.handleSubmit();
e.preventDefault();
}
this.blurOnEscape(e);
};