keydown/keypress (safari/firefox)

This commit is contained in:
Rolux 2010-02-05 21:01:19 +05:30
parent b84cb799ca
commit 17e5faf3a0

View file

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