fixed ctrl enter
This commit is contained in:
parent
568c9272ff
commit
07ea1aa6fe
1 changed files with 5 additions and 5 deletions
|
@ -128,6 +128,11 @@ const handlers = {
|
|||
return;
|
||||
}
|
||||
|
||||
// We submit the status on control/meta + enter.
|
||||
if (onSubmit && e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
|
||||
onSubmit();
|
||||
}
|
||||
|
||||
// Switches over the pressed key.
|
||||
switch(e.key) {
|
||||
|
||||
|
@ -157,11 +162,6 @@ const handlers = {
|
|||
}
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue