Changing ctrl for shift

This commit is contained in:
Christian Aribaud 2023-04-17 18:44:24 +02:00
parent 37844ba80d
commit e07730b465
2 changed files with 5 additions and 5 deletions

View File

@ -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) => {

View File

@ -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">&larr;</div>/ scroll up / clic left : previous panel</div> <div><div class="key">&larr;</div>/ scroll up / clic left : previous panel</div>
<div><div class="key">&rarr;</div>/ scroll down / clic center or right : next panel</div> <div><div class="key">&rarr;</div>/ scroll down / clic center or right : next panel</div>
<div><div class="key">CRTL</div> + <div class="key">&larr;</div>/<div class="key">&rarr;</div>: previous / next page</div> <div><div class="key">SHIFT</div> + <div class="key">&larr;</div>/<div class="key">&rarr;</div>: previous / next page</div>
</div> </div>
</div> </div>
</div> </div>