[richfaces-svn-commits] JBoss Rich Faces SVN: r5114 - trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Sat Dec 29 13:14:44 EST 2007


Author: sergeyhalipov
Date: 2007-12-29 13:14:44 -0500 (Sat, 29 Dec 2007)
New Revision: 5114

Modified:
   trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-1649

Modified: trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
--- trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js	2007-12-29 17:00:18 UTC (rev 5113)
+++ trunk/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js	2007-12-29 18:14:44 UTC (rev 5114)
@@ -84,8 +84,8 @@
         this.onBlurListener = this.onBlur.bindAsEventListener(this);
         Event.observe(this.element, "blur", this.onBlurListener);
 
-        this.onKeyPressListener = this.onKeyPress.bindAsEventListener(this);
-        Event.observe(this.element, "keypress", this.onKeyPressListener);
+        this.onKeyDownListener = this.onKeyDown.bindAsEventListener(this);
+        Event.observe(this.element, "keydown", this.onKeyDownListener);
 
         if (this.isOpera) {
             this.onKeyUpListener = this.onKeyUp.bindAsEventListener(this);
@@ -210,12 +210,12 @@
         LOG.info("Element unloaded from DOM");
         if (this.element) {
             Event.stopObserving(this.element, "blur", this.onBlurListener);
-            Event.stopObserving(this.element, "keypress", this.onKeyPressListener);
+            Event.stopObserving(this.element, "keydown", this.onKeyDownListener);
         }
         return true;
     },
 
-    onKeyPress: function(event) {
+    onKeyDown: function(event) {
         if (this.isUnloaded()) return;
         if (!this.initialized) {
             if (this.options.iframeId) {




More information about the richfaces-svn-commits mailing list