From 68dc62254a254e42a74beb0d7b0ea90c8833eaf5 Mon Sep 17 00:00:00 2001
From: Gabriela Bittencourt <gabrielabittencourt00@gmail.com>
Date: Fri, 2 Apr 2021 14:27:09 +0200
Subject: [PATCH] Disable autocomplete option in the search input box

Due to the usage of "keyup" as a trigger for the search, the aucomplete
window disappears before the user can take an action - making it
useless. That's not optimal, but it's a quick fix.
---
 pd/nw/dialog_search.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pd/nw/dialog_search.html b/pd/nw/dialog_search.html
index 0960b676c..d3534adb8 100644
--- a/pd/nw/dialog_search.html
+++ b/pd/nw/dialog_search.html
@@ -905,7 +905,8 @@ function doc_search() {
       <input type="search"
              name="search_text"
              id="search_text"
-             data-i18n="[title]search.search">
+             data-i18n="[title]search.search"
+             autocomplete="off">
       <input type="image" style="vertical-align:middle;"
              src="folder.svg"
              id="file_browser_button"
-- 
GitLab