bug 122036 - make space and ctrl+space work as expected. Not turned on yet.

git-svn-id: svn://10.0.0.236/trunk@114499 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%netscape.com 2002-02-14 09:29:00 +00:00
parent 2b95036759
commit c309e98277
2 changed files with 8 additions and 4 deletions

View File

@ -594,9 +594,11 @@
event.preventDefault();
var c = this.currentIndex;
var selection = this.outlinerBoxObject.selection;
if (!selection.isSelected(c)) {
if (event.ctrlKey || !selection.isSelected(c)) {
selection.toggleSelect(c);
this.selectElement.setOptionsSelectedByIndex(c, c, true, false, false, false);
this.selectElement.setOptionsSelectedByIndex(c, c,
selection.isSelected(c),
false, false, false);
if ("onchange" in this)
this.onchange();
}

View File

@ -594,9 +594,11 @@
event.preventDefault();
var c = this.currentIndex;
var selection = this.outlinerBoxObject.selection;
if (!selection.isSelected(c)) {
if (event.ctrlKey || !selection.isSelected(c)) {
selection.toggleSelect(c);
this.selectElement.setOptionsSelectedByIndex(c, c, true, false, false, false);
this.selectElement.setOptionsSelectedByIndex(c, c,
selection.isSelected(c),
false, false, false);
if ("onchange" in this)
this.onchange();
}