mirror of https://github.com/vector-im/riot-web
Merge pull request #3130 from matrix-org/bwindels/disable-left-right-autocomplete
Disable left/right arrow navigating completions for nowpull/21833/head
commit
50315557ba
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue