From 0c1be11c43e45a0b595ce817b2eacf094e132e63 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Fri, 5 Nov 2021 16:54:49 -0600 Subject: [PATCH] Do lookup on enter --- index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index d9d0ac2..7dc03a2 100644 --- a/index.html +++ b/index.html @@ -121,7 +121,7 @@ @@ -183,6 +183,12 @@ }, 1000); }); }); + + $("body").on("keypress", "#wordbox,#wordbox-mobile", function (e) { + if (e.which == 13) { + dolookup($(this).val()); + } + }); }; function dolookup(words) {