Author: Alex.Kolonitsky
Date: 2009-08-03 07:17:09 -0400 (Mon, 03 Aug 2009)
New Revision: 15094
Modified:
branches/community/3.3.X/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
Log:
rich:pickList - CTRL-key selection doesn't work on MacOS
https://jira.jboss.org/jira/browse/RF-7617
Modified:
branches/community/3.3.X/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
---
branches/community/3.3.X/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2009-08-03
10:16:52 UTC (rev 15093)
+++
branches/community/3.3.X/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2009-08-03
11:17:09 UTC (rev 15094)
@@ -182,7 +182,7 @@
var activeElem = this.getEventTargetRow(event);
if (activeElem != null) {
- if (event.ctrlKey) {
+ if (event.ctrlKey || e.metaKey) {
this.addSelectedItem(activeElem);
this.setActiveItem(activeElem);
} else if (event.shiftKey) {
@@ -217,7 +217,7 @@
Event.stop(event);
break;
case 65 : // Ctrl + A
- if (event.ctrlKey) {
+ if (event.ctrlKey || e.metaKey) {
this.selectAll();
}
this.activeItem.item.doActive(this.getExtRowClass(this.activeItem.rowIndex),
this.columnClasses);