1
0
term/pkg/jquery.hotkeys/hotkeys.js
2024-04-06 03:56:52 +09:00

17 lines
422 B
JavaScript

$(function(){
$(document).bind('keydown','ctrl+return',
function(){
$("home-layout").toggle();
$('#terminal').click();
var element=document.getElementById("window");
var rect=element.getBoundingClientRect();
var positionX=rect.left+window.pageXOffset;
var positionY=rect.top+window.pageYOffset;
window.scrollTo(positionX,positionY);
})
$('.move').click(
function(){
this.focus();
});
});