From c288f9969e113cb7dbd38bf05167cc8e94e007ff Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 05 Oct 2010 03:49:00 -0400
Subject: [PATCH] - Improve r4038: we can use keypress on FF and Opera, here we've got repetition - Small code cleanup

---
 program/js/app.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 3a2cb08..93db9b9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2768,7 +2768,7 @@
 
   this.init_address_input_events = function(obj)
   {
-    obj.keydown(function(e){ return ref.ksearch_keydown(e, this); })
+    obj[bw.ie || bw.safari || bw.chrome ? 'keydown' : 'keypress'](function(e){ return ref.ksearch_keydown(e, this); })
       .attr('autocomplete', 'off');
   };
 

--
Gitblit v1.9.1