From 17e5faf3a0dd228e6d834b06737d5249f8d45818 Mon Sep 17 00:00:00 2001 From: Rolux Date: Fri, 5 Feb 2010 21:01:19 +0530 Subject: [PATCH] keydown/keypress (safari/firefox) --- build/js/ox.ui.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 9afc849e..ceefa695 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -457,8 +457,11 @@ requires }; $(function() { - $document.keydown(keydown); - $document.keypress(keydown); + if ($.browser.safari) { + $document.keydown(keydown); + } else { + $document.keypress(keydown); + } }); function keydown(event) { var key,