Author: piotr.buda
Date: 2008-10-01 05:18:18 -0400 (Wed, 01 Oct 2008)
New Revision: 10632
Modified:
trunk/ui/extendedDataTable/src/main/javascript/ClientUI/controls/datatable/ExtendedDataTableSelection.js
Log:
bug 807: Fixed selection with shift key for selectionMode="single"
Modified:
trunk/ui/extendedDataTable/src/main/javascript/ClientUI/controls/datatable/ExtendedDataTableSelection.js
===================================================================
---
trunk/ui/extendedDataTable/src/main/javascript/ClientUI/controls/datatable/ExtendedDataTableSelection.js 2008-10-01
01:04:03 UTC (rev 10631)
+++
trunk/ui/extendedDataTable/src/main/javascript/ClientUI/controls/datatable/ExtendedDataTableSelection.js 2008-10-01
09:18:18 UTC (rev 10632)
@@ -424,7 +424,8 @@
this.selectionFlag = "x";
range = [rowIndex, rowIndex];
this.setSelection(range);
- } else if (!event.ctrlKey && event.shiftKey) {
+ } else if (!event.ctrlKey && event.shiftKey
+ && this.options.selectionMode == "multi") {
if(!this.shiftRow) {
this.shiftRow = this.activeRow;
}
@@ -449,7 +450,8 @@
this.selectionFlag = "x";
range = [rowIndex, rowIndex];
this.setSelection(range);
- } else if (!event.ctrlKey && event.shiftKey) {
+ } else if (!event.ctrlKey && event.shiftKey
+ && this.options.selectionMode == "multi") {
if(!this.shiftRow) {
this.shiftRow = this.activeRow;
}
Show replies by date