website: fix search page turning error. #32
This commit is contained in:
parent
8a5153365d
commit
13a6f7f4d5
@ -78,7 +78,8 @@ document.addEventListener('keydown', (ev) => {
|
|||||||
searchBox.classList.contains('show') ? hideSearch() : showSearch();
|
searchBox.classList.contains('show') ? hideSearch() : showSearch();
|
||||||
}
|
}
|
||||||
if (ev.key.toLocaleLowerCase() === 'enter') {
|
if (ev.key.toLocaleLowerCase() === 'enter') {
|
||||||
window.location.href = getDocUrl(activeMenu.path)
|
const url = activeMenu.path || activeMenu?.item.path;
|
||||||
|
window.location.href = getDocUrl(url);
|
||||||
}
|
}
|
||||||
if (ev.key.toLocaleLowerCase() === 'arrowdown') {
|
if (ev.key.toLocaleLowerCase() === 'arrowdown') {
|
||||||
activeAnchorElm('down')
|
activeAnchorElm('down')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user