From 577dadfd182f968b5ac82a777462abc6dd8a9a11 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sat, 21 Nov 2020 17:59:35 +0200 Subject: [PATCH] Move isSearchField() to a better location --- keepassxc-browser/content/keepassxc-browser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/keepassxc-browser/content/keepassxc-browser.js b/keepassxc-browser/content/keepassxc-browser.js index ee38c4f..d8790d1 100755 --- a/keepassxc-browser/content/keepassxc-browser.js +++ b/keepassxc-browser/content/keepassxc-browser.js @@ -378,7 +378,7 @@ kpxcFields.getAllPageInputs = async function(previousInputs = []) { continue; } - if (kpxcFields.isVisible(input) && !kpxcFields.isSearchField(input) && kpxcFields.isAutocompleteAppropriate(input)) { + if (kpxcFields.isVisible(input) && kpxcFields.isAutocompleteAppropriate(input)) { fields.push(input); } } @@ -1527,7 +1527,8 @@ kpxcObserverHelper.getInputs = function(target, ignoreVisibility = false) { // Only include input fields that match with kpxcObserverHelper.inputTypes const inputs = []; for (const field of inputFields) { - if (!ignoreVisibility && !kpxcFields.isVisible(field)) { + if ((!ignoreVisibility && !kpxcFields.isVisible(field)) + || kpxcFields.isSearchField(field)) { continue; }