add
This commit is contained in:
19
pkg/jquery.hotkeys/hotkeys-blog.js
Normal file
19
pkg/jquery.hotkeys/hotkeys-blog.js
Normal file
@ -0,0 +1,19 @@
|
||||
$(function(){
|
||||
|
||||
$(document).bind('keydown','ctrl+return',
|
||||
function(){
|
||||
window.location.href = '/blog';
|
||||
}
|
||||
)
|
||||
|
||||
$(document).bind('keydown', 'Shift+j',
|
||||
function(){
|
||||
if (document.activeElement !== document.body){
|
||||
$(".article-nav-link-wrap:focus").closest("li").next().find("a.lmove").focus();
|
||||
} else {
|
||||
$('#article-nav-older').focus();
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
});
|
Reference in New Issue
Block a user