Author: abelevich
Date: 2008-03-17 10:51:09 -0400 (Mon, 17 Mar 2008)
New Revision: 6861
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
Log:
http://jira.jboss.com/jira/browse/RF-2362
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
---
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2008-03-17
14:46:54 UTC (rev 6860)
+++
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2008-03-17
14:51:09 UTC (rev 6861)
@@ -185,18 +185,20 @@
case 38 : //up arrow
action = 'up';
this.moveActiveItem(action, event);
+ Event.stop(event);
break;
case 40 : //down arrow
action = 'down';
this.moveActiveItem(action, event);
+ Event.stop(event);
break;
case 65 : // Ctrl + A
if (event.ctrlKey) {
this.selectAll();
- Event.stop(event);
}
this.activeItem.item.doActive(this.getExtRowClass(this.activeItem.rowIndex),
this.columnsClasses);
//this.saveState();
+ Event.stop(event);
break;
}
},
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
===================================================================
---
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2008-03-17
14:46:54 UTC (rev 6860)
+++
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2008-03-17
14:51:09 UTC (rev 6861)
@@ -144,8 +144,14 @@
onkeydownHandler : function(event) {
var action = null;
switch (event.keyCode) {
- case 34 : action = 'last'; this.moveSelectedItems(action ,event); break;
//page down
- case 33 : action = 'first'; this.moveSelectedItems(action, event); break;
//page up
+ case 34 : action = 'last';
+ this.moveSelectedItems(action ,event);
+ Event.stop(event);
+ break; //page down
+ case 33 : action = 'first';
+ this.moveSelectedItems(action, event);
+ Event.stop(event);
+ break; //page up
case 38 : //up arrow
action = 'up';
if (event.ctrlKey) {
@@ -153,6 +159,7 @@
} else {
this.moveActiveItem(action, event);
}
+ Event.stop(event);
break;
case 40 : //down arrow
action = 'down';
@@ -161,15 +168,16 @@
} else {
this.moveActiveItem(action, event);
}
+ Event.stop(event);
break;
case 65 : // Ctrl + A
if (event.ctrlKey) {
this.selectAll();
- Event.stop(event);
}
this.activeItem.item.doActive(this.getExtRowClass(this.activeItem.rowIndex),
this.columnsClasses);
//this.saveState();
this.controlListManager();
+ Event.stop(event);
break;
}
},