Merge pull request #3362 from matrix-org/bwindels/cider-no-enter-autocomplete
New composer: don't capture enter to close autocomplete
This commit is contained in:
commit
4779880a94
1 changed files with 0 additions and 8 deletions
|
@ -268,14 +268,6 @@ export default class BasicMessageEditor extends React.Component {
|
|||
if (model.autoComplete) {
|
||||
const autoComplete = model.autoComplete;
|
||||
switch (event.key) {
|
||||
case "Enter":
|
||||
// only capture enter when something is selected in the list,
|
||||
// otherwise don't handle so the contents of the composer gets sent
|
||||
if (autoComplete.hasSelection()) {
|
||||
autoComplete.onEnter(event);
|
||||
handled = true;
|
||||
}
|
||||
break;
|
||||
case "ArrowUp":
|
||||
autoComplete.onUpArrow(event);
|
||||
handled = true;
|
||||
|
|
Loading…
Reference in a new issue