From cf0799289db2ec89f4ed09111a2c4c55eb3a4bc9 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 Jun 2019 13:48:52 +0200 Subject: [PATCH] Disable left/right arrow navigating completions for now as the autocomplete is now very eager to appear, this breaks caret navigation when typing e.g. anything with a colon. Ideally, we should make the AC less eager to appear, but this is a quick fix for now. --- src/components/views/rooms/MessageComposerInput.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index bf0287d376..7a64e9ad51 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -682,14 +682,6 @@ export default class MessageComposerInput extends React.Component { if (this.autocomplete.countCompletions() > 0) { if (!(ev.ctrlKey || ev.shiftKey || ev.altKey || ev.metaKey)) { 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: this.autocomplete.moveSelection(-1); ev.preventDefault();