1
0
term/pkg/jquery.hotkeys/hotkeys-blog.js
2024-04-06 07:42:07 +09:00

20 lines
375 B
JavaScript

$(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();
}
}
)
});