search key nav fixes 2
All checks were successful
Build Org Website / build (push) Successful in 44s
All checks were successful
Build Org Website / build (push) Successful in 44s
This commit is contained in:
@@ -195,6 +195,11 @@ function isSearchOpen() {
|
||||
return modal.classList.contains("is-open");
|
||||
}
|
||||
|
||||
function focusPaneInput() {
|
||||
paneInput.focus({ preventScroll: true });
|
||||
paneInput.setSelectionRange(paneInput.value.length, paneInput.value.length);
|
||||
}
|
||||
|
||||
function openSearchPane(initialValue = "") {
|
||||
const value = initialValue || searchInput?.value || paneInput?.value || "";
|
||||
|
||||
@@ -206,10 +211,8 @@ function openSearchPane(initialValue = "") {
|
||||
setHeaderSearchValue(value);
|
||||
renderResults(value);
|
||||
|
||||
window.setTimeout(() => {
|
||||
paneInput.focus();
|
||||
paneInput.setSelectionRange(paneInput.value.length, paneInput.value.length);
|
||||
}, 0);
|
||||
focusPaneInput();
|
||||
window.requestAnimationFrame(focusPaneInput);
|
||||
}
|
||||
|
||||
function closeSearchPane() {
|
||||
|
||||
@@ -52,3 +52,9 @@
|
||||
2026-05-14T12:13:10.4264267+01:00 [INFO] Running authoring server tests with /home/zaine/master-folder/projects/authoring-service/.venv/bin/python.
|
||||
2026-05-14T12:13:10.5127406+01:00 [INFO] Authoring server tests passed: ran=0, failures=0, errors=0, skipped=0, exit=0
|
||||
2026-05-14T12:13:10.8568861+01:00 [INFO] Sent authoring server test notification.
|
||||
2026-05-14T14:15:30.2211122+01:00 [INFO] Prepared current build status for zaine/org_web: severity=Info, status=success
|
||||
2026-05-14T14:15:30.2292131+01:00 [INFO] Fetching recent Gitea Actions runs for zaine/org_web.
|
||||
2026-05-14T14:15:31.1154869+01:00 [INFO] Sent build status notification with 1 embed(s).
|
||||
2026-05-14T14:15:31.1342011+01:00 [INFO] Running authoring server tests with /home/zaine/master-folder/projects/authoring-service/.venv/bin/python.
|
||||
2026-05-14T14:15:31.2003446+01:00 [INFO] Authoring server tests passed: ran=0, failures=0, errors=0, skipped=0, exit=0
|
||||
2026-05-14T14:15:31.5146611+01:00 [INFO] Sent authoring server test notification.
|
||||
|
||||
@@ -47,12 +47,12 @@
|
||||
- [[file:tags/notes.org][Tag: notes]]
|
||||
- [[file:tags/review.org][Tag: review]]
|
||||
- [[file:tags/website.org][Tag: website]]
|
||||
- [[file:tags/update.org][Tag: update]]
|
||||
- [[file:tags/life.org][Tag: life]]
|
||||
- [[file:tags/education.org][Tag: education]]
|
||||
- [[file:tags/update.org][Tag: update]]
|
||||
- [[file:tags/insights.org][Tag: insights]]
|
||||
- [[file:tags/reading.org][Tag: reading]]
|
||||
- [[file:tags/emacs.org][Tag: emacs]]
|
||||
- [[file:tags/education.org][Tag: education]]
|
||||
- [[file:tags/reading.org][Tag: reading]]
|
||||
- [[file:tags/maths.org][Tag: maths]]
|
||||
- posts
|
||||
- [[file:posts/posts-intro.org][Posts Introduction]]
|
||||
|
||||
Reference in New Issue
Block a user