Added hotkey for next/prev page
This commit is contained in:
parent
5c76a41ae7
commit
0eb1ef4fff
1 changed files with 2 additions and 0 deletions
|
@ -210,4 +210,6 @@ $(function()
|
|||
Mousetrap.bind('q', function() { $('#top-nav input').focus(); return false; });
|
||||
Mousetrap.bind('w', function() { $('body,html').animate({scrollTop: '-=150px'}, 200); });
|
||||
Mousetrap.bind('s', function() { $('body,html').animate({scrollTop: '+=150px'}, 200); });
|
||||
Mousetrap.bind('a', function() { var url = $('.paginator .prev:not(.disabled) a').attr('href'); if (typeof url !== 'undefined') window.location.href = url; });
|
||||
Mousetrap.bind('d', function() { var url = $('.paginator .next:not(.disabled) a').attr('href'); if (typeof url !== 'undefined') window.location.href = url; });
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue