From 7167448bcb73a0d7367efc36ebf5c06add65fa2b Mon Sep 17 00:00:00 2001 From: Seyi Adebajo Date: Mon, 14 Nov 2016 10:01:12 -0800 Subject: [PATCH] DSS-5577: Fixes user handling of enter key when searching for keywords --- web/public/javascripts/search.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/public/javascripts/search.js b/web/public/javascripts/search.js index 67a2335d88..e0528afcbe 100644 --- a/web/public/javascripts/search.js +++ b/web/public/javascripts/search.js @@ -354,6 +354,14 @@ } }); + // This is a stop gap implementation to solve the issue with handling the enter key on user search + document.querySelector('#searchInput') + .addEventListener('keypress', ({keyCode}) => { + if (keyCode === 13) { + document.querySelector('#searchBtn').click(); + } + }); + function advSearchForDataset() { var empty = true;