mirror of
https://github.com/danbulant/Mangades
synced 2026-07-04 18:40:41 +00:00
prevent default
This commit is contained in:
parent
89cf04cada
commit
e13ac35fea
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@
|
||||||
* @param {KeyboardEvent} e
|
* @param {KeyboardEvent} e
|
||||||
*/
|
*/
|
||||||
function keydown(e) {
|
function keydown(e) {
|
||||||
if(!image.complete) return false;
|
if(!image.complete) return e.preventDefault() || false;
|
||||||
if(!wasArrowDownUp || !wasArrowUpUp) return;
|
if(!wasArrowDownUp || !wasArrowUpUp) return;
|
||||||
switch(e.key) {
|
switch(e.key) {
|
||||||
case "PageUp":
|
case "PageUp":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue