Fullscreen keybind (#961)

# Added
- Added: Added 'f' as keybind to toggle fullscreen on manga and book readers.
This commit is contained in:
Robbie Davis 2022-01-19 08:38:49 -05:00 committed by GitHub
parent 9850d66546
commit 9dd71fe102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -494,6 +494,8 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {
event.preventDefault();
} else if (event.key === KEY_CODES.G) {
this.goToPage();
} else if (event.key === KEY_CODES.F) {
this.toggleFullscreen()
}
}

View File

@ -400,6 +400,8 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {
this.goToPage(parseInt(goToPageNum.trim(), 10));
} else if (event.key === KEY_CODES.B) {
this.bookmarkPage();
} else if (event.key === KEY_CODES.F) {
this.toggleFullscreen()
}
}

View File

@ -19,6 +19,7 @@ export enum KEY_CODES {
ENTER = 'Enter',
G = 'g',
B = 'b',
F = 'f',
BACKSPACE = 'Backspace',
DELETE = 'Delete',
SHIFT = 'Shift'