Author: nbelaevski
Date: 2008-04-04 16:51:54 -0400 (Fri, 04 Apr 2008)
New Revision: 7617
Modified:
branches/3.1.x/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js
Log:
http://jira.jboss.com/jira/browse/RF-2160
http://jira.jboss.com/jira/browse/RF-2524
Modified:
branches/3.1.x/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js
===================================================================
---
branches/3.1.x/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js 2008-04-04
20:47:14 UTC (rev 7616)
+++
branches/3.1.x/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-selection.js 2008-04-04
20:51:54 UTC (rev 7617)
@@ -3,8 +3,8 @@
initialize: function(tree) {
this.tree = tree;
- this.eventKeyPress = this.processKeyDown.bindAsEventListener(this);
- Event.observe(document, "keypress", this.eventKeyPress);
+ this.eventKeyDown = this.processKeyDown.bindAsEventListener(this);
+ Event.observe(document, "keydown", this.eventKeyDown);
this.eventLostFocus = this.processLostFocus.bindAsEventListener(this);
Event.observe(document, "click", this.eventLostFocus);
@@ -17,7 +17,7 @@
this.activeItem = null;
this.tree = null;
- Event.stopObserving(document, "keypress", this.eventKeyPress);
+ Event.stopObserving(document, "keydown", this.eventKeyDown);
Event.stopObserving(document, "click", this.eventLostFocus);
},