diff --git a/public_html/media/js/core.js b/public_html/media/js/core.js index 555078ec..b70a091c 100644 --- a/public_html/media/js/core.js +++ b/public_html/media/js/core.js @@ -240,4 +240,5 @@ $(function() Mousetrap.bind('s', function() { $('body,html').animate({scrollTop: '+=150px'}, 200); }); Mousetrap.bind('a', function() { var url = $('.paginator:visible .prev:not(.disabled) a').attr('href'); if (typeof url !== 'undefined') window.location.href = url; }, 'keyup'); Mousetrap.bind('d', function() { var url = $('.paginator:visible .next:not(.disabled) a').attr('href'); if (typeof url !== 'undefined') window.location.href = url; }, 'keyup'); + Mousetrap.bind('p', function() { $('.post a').eq(0).focus(); return false; }, 'keyup'); }); diff --git a/src/Views/index-help.phtml b/src/Views/index-help.phtml index 25cf302a..0c1a5b51 100644 --- a/src/Views/index-help.phtml +++ b/src/Views/index-help.phtml @@ -11,6 +11,7 @@
  • scroll up/down: [W], [S]
  • go to newer/older post or page: [A], [D]
  • edit post: [E]
  • +
  • focus first post in post list: [P]
  • Search syntax