зеркало из https://github.com/mozilla/pjs.git
bug 122036 - make space and ctrl+space work as expected. Not turned on yet.
This commit is contained in:
Родитель
c0afee1f75
Коммит
83015eb2dc
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче