Fix ComposeForm Ctrl+Enter hotkey issue, fixes #127
This commit is contained in:
parent
c932872727
commit
61fcfdbc6e
|
@ -89,6 +89,7 @@ class ComposeForm extends ImmutablePureComponent {
|
||||||
handleKeyDown = (e) => {
|
handleKeyDown = (e) => {
|
||||||
if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
|
if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
|
||||||
this.handleSubmit();
|
this.handleSubmit();
|
||||||
|
e.preventDefault(); // Prevent bubbling to other ComposeForm instances
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue