From 24cc55c7f53ddfbbbd27d46677692bfb417a089e Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Tue, 14 Sep 2021 18:27:31 +0200 Subject: [PATCH] supress enter keypresses in HTML input search fields see #295 --- .../templates/modules/validate_browse_select_mode.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/html/templates/modules/validate_browse_select_mode.html b/html/templates/modules/validate_browse_select_mode.html index 15ffbfc9..f175c33d 100644 --- a/html/templates/modules/validate_browse_select_mode.html +++ b/html/templates/modules/validate_browse_select_mode.html @@ -359,6 +359,14 @@ $("#validationQuery").val(randomElem); }); + $("#validationQuery").keyup(function(event) { + if(event.keyCode === 13) { //when enter inside input field is pressed + event.preventDefault(); + populateImageGrid(); + $("#validationQuery").blur(); + } + }); + getValidatedStatistics(); }); @@ -370,7 +378,7 @@
-
+

Search for images you are interested in