mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1438 from stefansundin/tweak-tab-autofill
Do not autofill the password when Tab is pressed if the list is closed
This commit is contained in:
commit
e69135ff6a
1 changed files with 5 additions and 0 deletions
|
|
@ -206,6 +206,11 @@ class Autocomplete {
|
|||
this.closeList();
|
||||
}
|
||||
} else if (e.key === 'Tab') {
|
||||
// Return if the list is not open
|
||||
if (items.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Return if value is not in the list
|
||||
if (inputField.value !== '' && !this.elements.some(c => c.value === inputField.value)) {
|
||||
this.closeList();
|
||||
|
|
|
|||
Loading…
Reference in a new issue