From 24e959c96f0bed774fd4a6bdb28a595738a5d9f6 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Wed, 7 May 2025 00:48:10 -0400 Subject: [PATCH] Makes input boxes of search plugin work better on mobile This change makes the input boxes of the search plugin work better on mobile. Changing the input type to "search" makes it so that the virtual keyboard that pops up on mobile devices has a search button where the enter key normally is, so that clicking in will execute the search. Currently, with the type set to "text", the enter button on mobile keyboards is changed into a tab, because the browser sees, the input box for the search in the wiki footer, and thinks the user might want to tab over there instead of executing the search. --- client/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/search.js b/client/search.js index 1b6b7ac..fe1b6e0 100644 --- a/client/search.js +++ b/client/search.js @@ -78,7 +78,7 @@ const emit = ($item, item) => { const handle = request => { if (request.input) { $item.request = request - $item.find('span').append('').on('keyup', keystroke) + $item.find('span').append('').on('keyup', keystroke) } else if (request.search) { $item.request = request $item