mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-28 18:40:47 +00:00
Fix Cmd + Enter in the composer triggering confirmation dialog action
This commit is contained in:
parent
9dbebbb2ee
commit
8c3f01a641
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user