We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dc2fa8 commit 93e1433Copy full SHA for 93e1433
docs/api/ApiIndex.vue
@@ -53,6 +53,14 @@ function apiSearchFocusHandler(event: KeyboardEvent): void {
53
} else {
54
apiFilter.value!.blur();
55
}
56
+ } else if (event.key === 'Enter') {
57
+ if (apiFilter.value !== document.activeElement) return;
58
+ if (query.value === '') return;
59
+ const item = filtered.value[0].items[0];
60
+ if (!item) return;
61
+ const header = item.headers[0];
62
+ if (!header) return;
63
+ window.location.href = item.link + '.html#' + slugify(header.anchor);
64
} else if (
65
/^[a-z]$/.test(event.key) &&
66
!event.altKey &&
0 commit comments