Fix ComposeForm Ctrl+Enter hotkey issue, fixes #127

This commit is contained in:
Alex Gleason 2020-05-30 17:29:50 -05:00
parent c932872727
commit 61fcfdbc6e
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ class ComposeForm extends ImmutablePureComponent {
handleKeyDown = (e) => {
if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
this.handleSubmit();
e.preventDefault(); // Prevent bubbling to other ComposeForm instances
}
}