mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #520 from keepassxreboot/username_only_forms
Allow filling username only from keyboard shortcut
This commit is contained in:
commit
4d98c93f80
1 changed files with 9 additions and 5 deletions
|
|
@ -818,12 +818,16 @@ kpxc.initCredentialFields = function(forceCall) {
|
|||
kpxc.initializeSitePreferences();
|
||||
if (kpxc.settings.sitePreferences) {
|
||||
for (const site of kpxc.settings.sitePreferences) {
|
||||
if (site.url === window.top.location.href || siteMatch(site.url, window.top.location.href)) {
|
||||
if (site.ignore === IGNORE_FULL) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
if (siteMatch(site.url, window.top.location.href) || site.url === window.top.location.href) {
|
||||
if (site.ignore === IGNORE_FULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
_singleInputEnabledForPage = site.usernameOnly;
|
||||
_singleInputEnabledForPage = site.usernameOnly;
|
||||
}
|
||||
} catch (err) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue