Author: sergeyhalipov
Date: 2008-01-08 09:50:24 -0500 (Tue, 08 Jan 2008)
New Revision: 5179
Modified:
branches/3.1.x/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
Log:
http://jira.jboss.com/jira/browse/RF-1649
Modified:
branches/3.1.x/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js
===================================================================
---
branches/3.1.x/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-01-08
14:15:30 UTC (rev 5178)
+++
branches/3.1.x/ui/suggestionbox/src/main/resources/org/richfaces/renderkit/html/scripts/suggestionbox.js 2008-01-08
14:50:24 UTC (rev 5179)
@@ -81,8 +81,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);
@@ -206,12 +206,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) {