search key nav fixes 4
All checks were successful
Build Org Website / build (push) Successful in 43s
All checks were successful
Build Org Website / build (push) Successful in 43s
This commit is contained in:
@@ -197,12 +197,20 @@ function isSearchOpen() {
|
|||||||
|
|
||||||
function focusPaneInput() {
|
function focusPaneInput() {
|
||||||
if (!isSearchOpen()) return;
|
if (!isSearchOpen()) return;
|
||||||
paneInput.focus();
|
paneInput.focus({ preventScroll: true });
|
||||||
try {
|
try {
|
||||||
paneInput.setSelectionRange(paneInput.value.length, paneInput.value.length);
|
paneInput.setSelectionRange(paneInput.value.length, paneInput.value.length);
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function schedulePaneInputFocus() {
|
||||||
|
focusPaneInput();
|
||||||
|
window.requestAnimationFrame(() => {
|
||||||
|
focusPaneInput();
|
||||||
|
window.requestAnimationFrame(focusPaneInput);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function openSearchPane(initialValue = "") {
|
function openSearchPane(initialValue = "") {
|
||||||
const value = initialValue || searchInput?.value || paneInput?.value || "";
|
const value = initialValue || searchInput?.value || paneInput?.value || "";
|
||||||
|
|
||||||
@@ -214,9 +222,7 @@ function openSearchPane(initialValue = "") {
|
|||||||
setHeaderSearchValue(value);
|
setHeaderSearchValue(value);
|
||||||
renderResults(value);
|
renderResults(value);
|
||||||
|
|
||||||
focusPaneInput();
|
schedulePaneInputFocus();
|
||||||
window.requestAnimationFrame(focusPaneInput);
|
|
||||||
window.setTimeout(focusPaneInput, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeSearchPane() {
|
function closeSearchPane() {
|
||||||
@@ -249,7 +255,7 @@ function updateActiveResult(focusActive = false) {
|
|||||||
block: "nearest",
|
block: "nearest",
|
||||||
behavior: "smooth",
|
behavior: "smooth",
|
||||||
});
|
});
|
||||||
if (focusActive) items[activeIndex].focus({ preventScroll: true });
|
if (focusActive) focusPaneInput();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,3 +65,11 @@
|
|||||||
2026-05-14T14:20:57.3821083+01:00 [INFO] Running authoring server tests with /home/zaine/master-folder/projects/authoring-service/.venv/bin/python.
|
2026-05-14T14:20:57.3821083+01:00 [INFO] Running authoring server tests with /home/zaine/master-folder/projects/authoring-service/.venv/bin/python.
|
||||||
2026-05-14T14:20:57.4511389+01:00 [INFO] Authoring server tests passed: ran=0, failures=0, errors=0, skipped=0, exit=0
|
2026-05-14T14:20:57.4511389+01:00 [INFO] Authoring server tests passed: ran=0, failures=0, errors=0, skipped=0, exit=0
|
||||||
2026-05-14T14:20:57.7269914+01:00 [INFO] Sent authoring server test notification.
|
2026-05-14T14:20:57.7269914+01:00 [INFO] Sent authoring server test notification.
|
||||||
|
2026-05-14T14:28:51.7619799+01:00 [INFO] Prepared current build status for zaine/org_web: severity=Info, status=success
|
||||||
|
2026-05-14T14:28:51.7691306+01:00 [INFO] Fetching recent Gitea Actions runs for zaine/org_web.
|
||||||
|
2026-05-14T14:28:52.0226534+01:00 [ERROR] Failed to analyze job 260: Cannot bind argument to parameter 'LogText' because it is an empty string.
|
||||||
|
2026-05-14T14:28:52.0288876+01:00 [ERROR] Failed to analyze job 259: Cannot bind argument to parameter 'LogText' because it is an empty string.
|
||||||
|
2026-05-14T14:28:52.7198313+01:00 [INFO] Sent build status notification with 1 embed(s).
|
||||||
|
2026-05-14T14:28:52.7399390+01:00 [INFO] Running authoring server tests with /home/zaine/master-folder/projects/authoring-service/.venv/bin/python.
|
||||||
|
2026-05-14T14:28:52.8118097+01:00 [INFO] Authoring server tests passed: ran=0, failures=0, errors=0, skipped=0, exit=0
|
||||||
|
2026-05-14T14:28:53.1416315+01:00 [INFO] Sent authoring server test notification.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
See the categories: @@html:<a href="../home/categories.html">Categories</a>@@
|
See the categories: @@html:<a href="../home/categories.html">Categories</a>@@
|
||||||
|
|
||||||
* Posts:
|
* Posts:
|
||||||
- [[file:career/career-list.org][Career List]] @@html:<span class="post-date">14-05-2026 14:15</span>@@
|
- [[file:career/career-list.org][Career List]] @@html:<span class="post-date">14-05-2026 14:28</span>@@
|
||||||
- [[file:career/ha-dr.org][High Availability, Disaster Recovery and Business Continuity]] @@html:<span class="post-date">11-03-2026 17:18</span>@@ @@html:<a href="/tags/learning.html"><span class="post-tag">learning</span></a>@@ @@html:<a href="/tags/notes.html"><span class="post-tag">notes</span></a>@@
|
- [[file:career/ha-dr.org][High Availability, Disaster Recovery and Business Continuity]] @@html:<span class="post-date">11-03-2026 17:18</span>@@ @@html:<a href="/tags/learning.html"><span class="post-tag">learning</span></a>@@ @@html:<a href="/tags/notes.html"><span class="post-tag">notes</span></a>@@
|
||||||
- [[file:career/javascript.org][Understands the Javascript language]] @@html:<span class="post-date">11-03-2026 16:52</span>@@ @@html:<a href="/tags/learning.html"><span class="post-tag">learning</span></a>@@ @@html:<a href="/tags/notes.html"><span class="post-tag">notes</span></a>@@
|
- [[file:career/javascript.org][Understands the Javascript language]] @@html:<span class="post-date">11-03-2026 16:52</span>@@ @@html:<a href="/tags/learning.html"><span class="post-tag">learning</span></a>@@ @@html:<a href="/tags/notes.html"><span class="post-tag">notes</span></a>@@
|
||||||
- [[file:career/restful-api.org][Restful API]] @@html:<span class="post-date">15-02-2026 23:00</span>@@ @@html:<a href="/tags/learning.html"><span class="post-tag">learning</span></a>@@ @@html:<a href="/tags/notes.html"><span class="post-tag">notes</span></a>@@
|
- [[file:career/restful-api.org][Restful API]] @@html:<span class="post-date">15-02-2026 23:00</span>@@ @@html:<a href="/tags/learning.html"><span class="post-tag">learning</span></a>@@ @@html:<a href="/tags/notes.html"><span class="post-tag">notes</span></a>@@
|
||||||
|
|||||||
Reference in New Issue
Block a user