From c9013d1b7657f666578935aec249aa9db649cce8 Mon Sep 17 00:00:00 2001 From: Demian Katz Date: Thu, 7 Dec 2023 09:13:46 -0500 Subject: [PATCH] [VUFIND-1654] Fix inconsistent cursor behavior with virtual keyboard. (#3248) --- themes/bootstrap3/js/searchbox_controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/bootstrap3/js/searchbox_controls.js b/themes/bootstrap3/js/searchbox_controls.js index 4cb720b73d8..ac13f140841 100644 --- a/themes/bootstrap3/js/searchbox_controls.js +++ b/themes/bootstrap3/js/searchbox_controls.js @@ -29,7 +29,6 @@ VuFind.register('searchbox_controls', function SearchboxControls() { if (triggerInputEvent) { _textInput.dispatchEvent(new Event('input')); } - _textInput.focus(); } function _showKeyboard() { @@ -154,6 +153,7 @@ VuFind.register('searchbox_controls', function SearchboxControls() { if (_resetButton) { _resetButton.addEventListener('click', function resetOnClick() { _handleInputChange(''); + _textInput.focus(); }); }