keydown/keypress (safari/firefox)
This commit is contained in:
parent
b84cb799ca
commit
17e5faf3a0
1 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue