mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 128749 - fix shortcut keys when a select/outliner has focus. r=pinkerton, sr=blake, a=asa.
This commit is contained in:
parent
e76130c9c7
commit
43c343c801
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user