Author: vmolotkov
Date: 2008-04-09 09:14:28 -0400 (Wed, 09 Apr 2008)
New Revision: 7702
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
Log:
http://jira.jboss.com/jira/browse/RF-2894
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
===================================================================
---
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2008-04-09
13:09:43 UTC (rev 7701)
+++
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2008-04-09
13:14:28 UTC (rev 7702)
@@ -291,8 +291,13 @@
moveActiveItem : function(event) {
var item = this.activeItem;
if (event.keyCode == Event.KEY_UP) {
- //part of
http://jira.jboss.com/jira/browse/RF-2656 (pressing key DOWN) will be
implemented in a future version
if (!this.activeItem) {
+ if (!this.selectFirstOnUpdate) {
+ var curItems = this.getItems();
+ if (curItems != null && curItems.length != 0) {
+ this.doActiveItem(curItems[curItems.length - 1]);
+ }
+ }
return;
}
var prevItem = item.previousSibling;