summaryrefslogtreecommitdiff
path: root/web/js
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-06 08:13:42 +0300
committerPaul Buetow <paul@buetow.org>2026-05-06 08:13:42 +0300
commite740e85ff53fcb04113603ff8fe9ba1a74bb253d (patch)
treec25dae15ae0a612fa2266ffa36066641e5c44902 /web/js
parent57ef3df578b924a63c7387176eb0f43801f2f052 (diff)
Add Down/j hotkey to exit filter and return to thumbnail grid
Diffstat (limited to 'web/js')
-rw-r--r--web/js/keyboard.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/js/keyboard.js b/web/js/keyboard.js
index d1f9ee7..e532379 100644
--- a/web/js/keyboard.js
+++ b/web/js/keyboard.js
@@ -95,6 +95,12 @@ export function initKeyboard(handlers) {
e.target.blur();
handlers.escape?.(e);
}
+ if (e.key === 'ArrowDown' || e.key === 'j') {
+ e.target.blur();
+ e.preventDefault();
+ document.getElementById('media-grid')?.focus();
+ handlers.navDown?.(e);
+ }
return;
}