mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Fullscreen keybind (#961)
# Added - Added: Added 'f' as keybind to toggle fullscreen on manga and book readers.
This commit is contained in:
parent
9850d66546
commit
9dd71fe102
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,6 +19,7 @@ export enum KEY_CODES {
|
||||
ENTER = 'Enter',
|
||||
G = 'g',
|
||||
B = 'b',
|
||||
F = 'f',
|
||||
BACKSPACE = 'Backspace',
|
||||
DELETE = 'Delete',
|
||||
SHIFT = 'Shift'
|
||||
|
Loading…
x
Reference in New Issue
Block a user