mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 02:50:46 +00:00
Fix Cmd/Ctrl + Enter in the composer triggering confirmation dialog action (#36870)
This commit is contained in:
parent
bb6093c315
commit
8174f4f576
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user