mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
change focus target on items when using keyboard navigation
This commit is contained in:
parent
0991c27f9d
commit
27749a2877
9 changed files with 12 additions and 4 deletions
|
@ -495,7 +495,7 @@ function goToListItem(offset) {
|
|||
|
||||
if (document.querySelector(".current-item") === null) {
|
||||
items[0].classList.add("current-item");
|
||||
items[0].querySelector('.item-header a').focus();
|
||||
items[0].focus();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -507,7 +507,7 @@ function goToListItem(offset) {
|
|||
|
||||
item.classList.add("current-item");
|
||||
DomHelper.scrollPageTo(item);
|
||||
item.querySelector('.item-header a').focus();
|
||||
item.focus();
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue