-1 = b.view.rowCount) return; } catch (e) { return; } if (!b.selection.isSelected(row.value)) { b.selection.select(row.value); } } ]]> = b.view.rowCount) return; } catch (e) { return; } var augment = event.ctrlKey || event.metaKey; if (event.shiftKey) b.selection.rangedSelect(-1, row.value, augment); else if (augment) { b.selection.toggleSelect(row.value); b.selection.currentIndex = row.value; } else { /* We want to deselect all the selected items except what was clicked, UNLESS it was a right-click. We have to do this in click rather than mousedown so that you can drag a selected group of items */ // if the last row has changed in between the time we // mousedown and the time we click, don't fire the select handler. // see bug #92366 if (this._lastSelectedRow == row.value) b.selection.select(row.value); } ]]> -1 -1 this.selectionTail) { this.outlinerBoxObject.selection.toggleSelect(c); this.currentIndex = c + 1; } else this.outlinerBoxObject.selection.toggleSelect(c + 1); } else { this.outlinerBoxObject.selection.clearSelection(); this.selectionHead = c; this.outlinerBoxObject.selection.rangedSelect(c, c + 1, true); } this.selectionTail = c + 1; this.outlinerBoxObject.ensureRowIsVisible(c + 1); ]]> 0) { var p = this.outlinerBoxObject.getPageCount(); if (f - p >= 0) i = c - p; else i = c - f; this.outlinerBoxObject.scrollByPages(-1); } this.outlinerBoxObject.selection.timedSelect(i, 500); ]]> 0) { var p = this.outlinerBoxObject.getPageCount(); if (f - p >= 0) i = c - p; else i = c - f; this.outlinerBoxObject.scrollByPages(-1); } if (c == this.selectionTail) { if (this.selectionHead < this.selectionTail) { if (i < this.selectionHead) { this.outlinerBoxObject.selection.clearRange(c, this.selectionHead + 1); this.outlinerBoxObject.selection.rangedSelect(this.selectionHead - 1, i, true); } else { this.outlinerBoxObject.selection.clearRange(c, i + 1); this.currentIndex = i; } } else this.outlinerBoxObject.selection.rangedSelect(c - 1, i, true); } else { this.outlinerBoxObject.selection.clearSelection(); this.selectionHead = c; this.outlinerBoxObject.selection.rangedSelect(c, i, true); } this.selectionTail = i; ]]> this.selectionTail) { if (i > this.selectionHead) { this.outlinerBoxObject.selection.clearRange(c, this.selectionHead - 1); this.outlinerBoxObject.selection.rangedSelect(this.selectionHead + 1, i, true); } else { this.outlinerBoxObject.selection.clearRange(c, i - 1); this.currentIndex = i; } } else this.outlinerBoxObject.selection.rangedSelect(c + 1, i, true); } else { this.outlinerBoxObject.selection.clearSelection(); this.selectionHead = c; this.outlinerBoxObject.selection.rangedSelect(c, i, true); } this.selectionTail = i; ]]> 0) { var p = this.outlinerBoxObject.getPageCount(); if (f - p >= 0) i = c - p; else i = c - f; this.outlinerBoxObject.scrollByPages(-1); } this.currentIndex = i; ]]>