Merge pull request #3130 from matrix-org/bwindels/disable-left-right-autocomplete

Disable left/right arrow navigating completions for now
This commit is contained in:
Bruno Windels 2019-06-21 12:32:11 +00:00 committed by GitHub
commit 50315557ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -682,14 +682,6 @@ export default class MessageComposerInput extends React.Component {
if (this.autocomplete.countCompletions() > 0) { if (this.autocomplete.countCompletions() > 0) {
if (!(ev.ctrlKey || ev.shiftKey || ev.altKey || ev.metaKey)) { if (!(ev.ctrlKey || ev.shiftKey || ev.altKey || ev.metaKey)) {
switch (ev.keyCode) { switch (ev.keyCode) {
case KeyCode.LEFT:
this.autocomplete.moveSelection(-1);
ev.preventDefault();
return true;
case KeyCode.RIGHT:
this.autocomplete.moveSelection(+1);
ev.preventDefault();
return true;
case KeyCode.UP: case KeyCode.UP:
this.autocomplete.moveSelection(-1); this.autocomplete.moveSelection(-1);
ev.preventDefault(); ev.preventDefault();