Fix ComposeForm Ctrl+Enter hotkey issue, fixes #127

stable/1.0.x
Alex Gleason 2020-05-30 17:29:50 -05:00
rodzic c932872727
commit 61fcfdbc6e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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