diff --git a/ElectronMainApp/src/main/ui/js/filters/antibanner-filters/antibanner-filters.js b/ElectronMainApp/src/main/ui/js/filters/antibanner-filters/antibanner-filters.js index 3cc253f3..7fb3ca0d 100644 --- a/ElectronMainApp/src/main/ui/js/filters/antibanner-filters/antibanner-filters.js +++ b/ElectronMainApp/src/main/ui/js/filters/antibanner-filters/antibanner-filters.js @@ -361,6 +361,7 @@ const AntiBannerFilters = function (options, contentBlockerInfo, environmentOpti type="text" placeholder="${i18n.__('options_filters_list_search_placeholder.message')}" name="searchFiltersList" + tabindex="0" /> diff --git a/ElectronMainApp/src/main/ui/js/filters/antibanner-filters/filter-search.js b/ElectronMainApp/src/main/ui/js/filters/antibanner-filters/filter-search.js index 2bdeec7b..da5cc684 100644 --- a/ElectronMainApp/src/main/ui/js/filters/antibanner-filters/filter-search.js +++ b/ElectronMainApp/src/main/ui/js/filters/antibanner-filters/filter-search.js @@ -76,6 +76,10 @@ function initFiltersSearch(category, renderCategoryFilters) { return; } + // https://github.com/AdguardTeam/AdGuardForSafari/issues/711 + // keep focus on search input if all search symbols has been deleted + searchInput.focus(); + const filtersContainer = document.querySelector(`#antibanner${category.groupId} .opts-list`); const filters = filtersContainer.querySelectorAll('li');