From 09a6c8b067af877a1d68b5f2b9470b542df77885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Thu, 29 Mar 2018 22:04:08 -0400 Subject: [PATCH] Fix autocomplete selection when hitting Enter --- client/js/keybinds.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/js/keybinds.js b/client/js/keybinds.js index d060ffe3..e9a512ad 100644 --- a/client/js/keybinds.js +++ b/client/js/keybinds.js @@ -116,6 +116,10 @@ function enableHistory() { inputTrap.bind("enter", function() { position = 0; + if (input.data("autocompleting")) { + return false; + } + const text = input.val(); if (text.length === 0) {