Fix H/L keys interfering with search in EPUB reader (#2426)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-23 09:38:16 -07:00
committed by GitHub
co-authored by acx10
parent 8ba0f38cca
commit d1c4836917
@@ -122,6 +122,10 @@ export class ReaderEventService {
private attachKeyboardHandler(): void {
this.keydownHandler = (event: KeyboardEvent) => {
const target = event.target as HTMLElement;
if (target?.tagName === 'INPUT' || target?.tagName === 'TEXTAREA' || target?.isContentEditable) {
return;
}
const k = event.key;
if (k === 'ArrowLeft' || k === 'h' || k === 'PageUp') {
this.viewCallbacks?.prev();