From ac37fbf337b3d9609a8204d687f9cf2d8b672584 Mon Sep 17 00:00:00 2001 From: Urban Guacamole Date: Sun, 13 Jan 2019 19:59:46 +0100 Subject: [PATCH] Add ability to launch search by hitting Enter --- website/view.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/view.js b/website/view.js index 0e4ff0e..1712db8 100644 --- a/website/view.js +++ b/website/view.js @@ -6,4 +6,10 @@ window.addEventListener("message", receiveMessage, false); function receiveMessage(event){ app.resultPageHeight = event.data +} + +document.getElementById('searchbox').onkeydown = function(event) { + if (event.keyCode == 13) { + searchTriggered() + } } \ No newline at end of file