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:
Bruno Windels 2019-08-30 08:17:47 +00:00 committed by GitHub
commit 4779880a94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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