search key nav fixes 2
All checks were successful
Build Org Website / build (push) Successful in 44s

This commit is contained in:
gitea-actions
2026-05-14 14:20:07 +01:00
parent a45015fae8
commit 41d5f8820e
3 changed files with 16 additions and 7 deletions

View File

@@ -195,6 +195,11 @@ function isSearchOpen() {
return modal.classList.contains("is-open"); return modal.classList.contains("is-open");
} }
function focusPaneInput() {
paneInput.focus({ preventScroll: true });
paneInput.setSelectionRange(paneInput.value.length, paneInput.value.length);
}
function openSearchPane(initialValue = "") { function openSearchPane(initialValue = "") {
const value = initialValue || searchInput?.value || paneInput?.value || ""; const value = initialValue || searchInput?.value || paneInput?.value || "";
@@ -206,10 +211,8 @@ function openSearchPane(initialValue = "") {
setHeaderSearchValue(value); setHeaderSearchValue(value);
renderResults(value); renderResults(value);
window.setTimeout(() => { focusPaneInput();
paneInput.focus(); window.requestAnimationFrame(focusPaneInput);
paneInput.setSelectionRange(paneInput.value.length, paneInput.value.length);
}, 0);
} }
function closeSearchPane() { function closeSearchPane() {

View File

@@ -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.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.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-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.

View File

@@ -47,12 +47,12 @@
- [[file:tags/notes.org][Tag: notes]] - [[file:tags/notes.org][Tag: notes]]
- [[file:tags/review.org][Tag: review]] - [[file:tags/review.org][Tag: review]]
- [[file:tags/website.org][Tag: website]] - [[file:tags/website.org][Tag: website]]
- [[file:tags/update.org][Tag: update]]
- [[file:tags/life.org][Tag: life]] - [[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/insights.org][Tag: insights]]
- [[file:tags/reading.org][Tag: reading]]
- [[file:tags/emacs.org][Tag: emacs]] - [[file:tags/emacs.org][Tag: emacs]]
- [[file:tags/education.org][Tag: education]]
- [[file:tags/reading.org][Tag: reading]]
- [[file:tags/maths.org][Tag: maths]] - [[file:tags/maths.org][Tag: maths]]
- posts - posts
- [[file:posts/posts-intro.org][Posts Introduction]] - [[file:posts/posts-intro.org][Posts Introduction]]