From b35acd37845b7164fa51c1fe63bc3e91fc94dc08 Mon Sep 17 00:00:00 2001 From: alexisben <alexiben7@gmail.com> Date: Fri, 6 May 2022 17:49:47 +0200 Subject: [PATCH] Search on enter key --- app/views/admin/communication/unsplash/_selector.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/admin/communication/unsplash/_selector.html.erb b/app/views/admin/communication/unsplash/_selector.html.erb index 8ec804cf4..617f8ede3 100644 --- a/app/views/admin/communication/unsplash/_selector.html.erb +++ b/app/views/admin/communication/unsplash/_selector.html.erb @@ -126,6 +126,7 @@ lang = about&.language&.iso_code if about.respond_to? :language if (event.key === "Enter" && this.isOpened) { event.preventDefault(); event.stopImmediatePropagation(); + this.search(); } }.bind(this)); }, -- GitLab