Fix Cmd + Enter in the composer triggering confirmation dialog action

This commit is contained in:
diondiondion 2025-11-13 16:23:26 +01:00
parent 9dbebbb2ee
commit 8c3f01a641

View File

@ -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);
};