keydown/keypress (safari/firefox)

This commit is contained in:
Rolux 2010-02-05 21:01:19 +05:30
parent f21dc4404c
commit 158d417850

View File

@ -457,8 +457,11 @@ requires
}; };
$(function() { $(function() {
$document.keydown(keydown); if ($.browser.safari) {
$document.keypress(keydown); $document.keydown(keydown);
} else {
$document.keypress(keydown);
}
}); });
function keydown(event) { function keydown(event) {
var key, var key,