mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-01 14:49:15 +00:00
use keydown instead of keypress for Chrome compatibility
This commit is contained in:
parent
fdda9fd9a3
commit
8b90a8157e
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
function navigateKeyboard(leftURL, rightURL) {
|
||||
window.addEventListener("keypress", function (event) {
|
||||
window.addEventListener("keydown", function (event) {
|
||||
var key = event.which || event.keyCode; // event.keyCode is used for IE8 and earlier versions
|
||||
switch (key) {
|
||||
case 37:
|
||||
|
|
Loading…
Reference in a new issue