fixed ctrl enter

master
Ondřej Hruška 7 years ago
parent 53caab0c0b
commit 9f29fd31ba
No known key found for this signature in database
GPG Key ID: 2C5FD5035250423D
  1. 10
      app/javascript/flavours/glitch/features/composer/textarea/index.js

@ -128,6 +128,11 @@ const handlers = {
return; return;
} }
// We submit the status on control/meta + enter.
if (onSubmit && e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
onSubmit();
}
// Switches over the pressed key. // Switches over the pressed key.
switch(e.key) { switch(e.key) {
@ -157,11 +162,6 @@ const handlers = {
} }
return; return;
} }
// We submit the status on control/meta + enter.
if (onSubmit && e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
onSubmit();
}
}, },
// When the escape key is released, we either close the suggestions // When the escape key is released, we either close the suggestions

Loading…
Cancel
Save