From 3865308e3671561a1ddc7426b38639e6fabadc94 Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Thu, 7 Jan 2021 19:43:13 +0300 Subject: [PATCH] FIX: Tab key should autocomplete like enter key does (#11659) --- app/assets/javascripts/discourse/app/lib/autocomplete.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/app/lib/autocomplete.js b/app/assets/javascripts/discourse/app/lib/autocomplete.js index 202d8d4385e..f165ecfac7e 100644 --- a/app/assets/javascripts/discourse/app/lib/autocomplete.js +++ b/app/assets/javascripts/discourse/app/lib/autocomplete.js @@ -569,6 +569,7 @@ export default function (options) { // Keyboard codes! So 80's. switch (e.which) { + case keys.tab: case keys.enter: if (!autocompleteOptions) { closeAutocomplete();