Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 65e7a7bf1f
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 0.603 kB
<html>
<head>
<script src="jquery-1.4.2.js"></script>
<script src="../jquery.hotkeys.js"></script>
</head>
<body>
<p>Try ctrl+s while focused in the input.</p>
<input type="text" />
<script>
function bindCtrlSInInput(){
alert("Ctrl+S");
return false;
}
bindCtrlSInInput.inputBinding = true;
$(document).ready(function(){
$(document).bind('keydown', 'ctrl+s', bindCtrlSInInput);
});
</script>
</body></html>
Jump to Line
Something went wrong with that request. Please try again.