Browse Source

hotkey_handler: prevent default handling of page changing events

Andrew Dolgov 2 years ago
parent
commit
36545b1372
1 changed files with 2 additions and 0 deletions
  1. 2 0
      js/read.js

+ 2 - 0
js/read.js

@@ -19,11 +19,13 @@ function hotkey_handler(e) {
 
 		// right
 		if (e.which == 39) {
+			e.preventDefault();
 			next_page();
 		}
 
 		// left
 		if (e.which == 37) {
+			e.preventDefault();;
 			prev_page();
 		}