diff --git a/web/assets/js/app.js b/web/assets/js/app.js index 73e39bb..d1da763 100644 --- a/web/assets/js/app.js +++ b/web/assets/js/app.js @@ -4,7 +4,7 @@ wallabag.App = (function() { return { Run: function() { - // wallabag.Event.ListenKeyboardEvents(); + wallabag.Event.ListenKeyboardEvents(); wallabag.Event.ListenMouseEvents(); }, } diff --git a/web/assets/js/event.js b/web/assets/js/event.js index 6f227f4..60a28f9 100644 --- a/web/assets/js/event.js +++ b/web/assets/js/event.js @@ -38,7 +38,7 @@ wallabag.Event = (function() { } } }; - }/*, + }, ListenKeyboardEvents: function() { document.onkeypress = function(e) { @@ -51,23 +51,19 @@ wallabag.Event = (function() { case undefined: break; case 117: // u - window.location.href = "?action=unread"; + window.location.href = "/"; queue = []; break; case 98: // b - window.location.href = "?action=bookmarks"; + window.location.href = "/bookmarks"; queue = []; break; case 104: // h - window.location.href = "?action=history"; + window.location.href = "/archive"; queue = []; break; case 115: // s - window.location.href = "?action=feeds"; - queue = []; - break; - case 112: // p - window.location.href = "?action=config"; + window.location.href = "/add"; queue = []; break; default: @@ -113,9 +109,10 @@ wallabag.Event = (function() { wallabag.Nav.ShowHelp(); break; } + } } - }*/ + } }; })(); \ No newline at end of file