mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #1094 from philipreimer/fix/submit_username_when_selecting_from_autocomplete_list_via_keyboard
Fix submitting the usernam when selecting from autocomplete list via keyboard
This commit is contained in:
commit
c273b3b9dd
1 changed files with 2 additions and 2 deletions
|
|
@ -189,8 +189,8 @@ kpxcAutocomplete.keyPress = function(e) {
|
|||
|
||||
if (kpxcAutocomplete.index >= 0 && items && items[kpxcAutocomplete.index] !== undefined) {
|
||||
e.preventDefault();
|
||||
kpxcAutocomplete.input.value = kpxcAutocomplete.elements[kpxcAutocomplete.index].value;
|
||||
kpxcAutocomplete.fillPassword(kpxcAutocomplete.input.value, kpxcAutocomplete.index, kpxcAutocomplete.elements[kpxcAutocomplete.index].uuid);
|
||||
const usernameValue = kpxcAutocomplete.elements[kpxcAutocomplete.index].value;
|
||||
kpxcAutocomplete.fillPassword(usernameValue, kpxcAutocomplete.index, kpxcAutocomplete.elements[kpxcAutocomplete.index].uuid);
|
||||
kpxcAutocomplete.closeList();
|
||||
}
|
||||
} else if (e.key === 'Tab') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue