Bug 128749 - fix shortcut keys when a select/outliner has focus. r=pinkerton, sr=blake, a=asa.

This commit is contained in:
bryner%netscape.com 2002-03-04 23:36:38 +00:00
parent e76130c9c7
commit 43c343c801
3 changed files with 3 additions and 3 deletions

View File

@ -590,7 +590,7 @@
</handler>
<handler event="keypress">
<![CDATA[
if (event.keyCode == ' ') {
if (event.keyCode == ' '.charCodeAt(0)) {
event.preventDefault();
var c = this.currentIndex;
var selection = this.outlinerBoxObject.selection;

View File

@ -590,7 +590,7 @@
</handler>
<handler event="keypress">
<![CDATA[
if (event.keyCode == ' ') {
if (event.keyCode == ' '.charCodeAt(0)) {
event.preventDefault();
var c = this.currentIndex;
var selection = this.outlinerBoxObject.selection;

View File

@ -559,7 +559,7 @@
</handler>
<handler event="keypress">
<![CDATA[
if (event.keyCode == ' ') {
if (event.keyCode == ' '.charCodeAt(0)) {
var c = this.currentIndex;
if (!this.outlinerBoxObject.selection.isSelected(c))
this.outlinerBoxObject.selection.toggleSelect(c);