@d-i-t-a/reader 2.4.5 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,6 +36,8 @@ export interface NavigatorAPI {
|
|
|
36
36
|
resourceAtEnd: any;
|
|
37
37
|
resourceFitsScreen: any;
|
|
38
38
|
updateCurrentLocation: any;
|
|
39
|
+
keydownFallthrough: any;
|
|
40
|
+
clickThrough: any;
|
|
39
41
|
direction: any;
|
|
40
42
|
onError?: (e: Error) => void;
|
|
41
43
|
}
|
|
@@ -275,6 +277,7 @@ export declare class IFrameNavigator extends EventEmitter implements Navigator {
|
|
|
275
277
|
savePosition: debounce.DebouncedFunction<() => void>;
|
|
276
278
|
private handlePreviousChapterClick;
|
|
277
279
|
private handleNextChapterClick;
|
|
280
|
+
private handleKeydownFallthrough;
|
|
278
281
|
private hideView;
|
|
279
282
|
private setActiveTOCItem;
|
|
280
283
|
navigate(locator: Locator, history?: boolean): Promise<void>;
|
|
@@ -5,6 +5,7 @@ export default class KeyboardEventHandler {
|
|
|
5
5
|
constructor(navigator: IFrameNavigator);
|
|
6
6
|
onBackwardSwipe: (event: UIEvent) => void;
|
|
7
7
|
onForwardSwipe: (event: UIEvent) => void;
|
|
8
|
+
onKeydown: (event: UIEvent) => void;
|
|
8
9
|
setupEvents: (element: HTMLElement | Document | null) => void;
|
|
9
10
|
removeEvents: (element: HTMLElement | Document | null) => void;
|
|
10
11
|
focusin: (element: HTMLElement | Document) => void;
|