Changing ctrl for shift
This commit is contained in:
parent
37844ba80d
commit
e07730b465
|
@ -281,14 +281,14 @@ function moveReader(to_next, move_page) {
|
||||||
// CALLBACKS
|
// CALLBACKS
|
||||||
// =============
|
// =============
|
||||||
|
|
||||||
function handleKeyPress(key, has_ctrl){
|
function handleKeyPress(key, has_shift){
|
||||||
|
|
||||||
if (key == MOVE_NEXT) {
|
if (key == MOVE_NEXT) {
|
||||||
moveReader(true, has_ctrl)
|
moveReader(true, has_shift)
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (key == MOVE_BACK) {
|
else if (key == MOVE_BACK) {
|
||||||
moveReader(false, has_ctrl)
|
moveReader(false, has_shift)
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (key.toUpperCase() == TOGGLE_FULLSCREEN){
|
else if (key.toUpperCase() == TOGGLE_FULLSCREEN){
|
||||||
|
@ -335,7 +335,7 @@ addEventListener("resize", (event) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
addEventListener("keydown", (event) => {
|
addEventListener("keydown", (event) => {
|
||||||
handleKeyPress(event.key, event.ctrlKey)
|
handleKeyPress(event.key, event.shiftKey)
|
||||||
});
|
});
|
||||||
|
|
||||||
addEventListener("wheel", (event) => {
|
addEventListener("wheel", (event) => {
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<div><div class="key">F</div>: Toggle fullscreen</div>
|
<div><div class="key">F</div>: Toggle fullscreen</div>
|
||||||
<div><div class="key">←</div>/ scroll up / clic left : previous panel</div>
|
<div><div class="key">←</div>/ scroll up / clic left : previous panel</div>
|
||||||
<div><div class="key">→</div>/ scroll down / clic center or right : next panel</div>
|
<div><div class="key">→</div>/ scroll down / clic center or right : next panel</div>
|
||||||
<div><div class="key">CRTL</div> + <div class="key">←</div>/<div class="key">→</div>: previous / next page</div>
|
<div><div class="key">SHIFT</div> + <div class="key">←</div>/<div class="key">→</div>: previous / next page</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue