keyboard shortcut for toggleLayout
This commit is contained in:
parent
efa87a5d64
commit
b0d2511b43
1 changed files with 6 additions and 2 deletions
|
@ -78,7 +78,8 @@ function ComicBook(id, srcs, opts) {
|
|||
keyboard: {
|
||||
next: 78,
|
||||
previous: 80,
|
||||
toolbar: 84
|
||||
toolbar: 84,
|
||||
toggleLayout: 76
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -765,6 +766,9 @@ function ComicBook(id, srcs, opts) {
|
|||
if (e.keyCode === options.keyboard.toolbar) {
|
||||
ComicBook.prototype.toggleToolbar();
|
||||
}
|
||||
if (e.keyCode === options.keyboard.toggleLayout) {
|
||||
ComicBook.prototype.toggleLayout();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new ComicBookException(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue