Left and right arrow keys shouldn't open/close a contact while it's being aliased.
This commit is contained in:
Родитель
0e69f99077
Коммит
af7ebc8a3c
|
@ -545,16 +545,18 @@
|
|||
<parameter name="aEvent"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
switch (aEvent.keyCode) {
|
||||
case aEvent.DOM_VK_LEFT:
|
||||
if (this.hasAttribute("open"))
|
||||
this.open();
|
||||
break;
|
||||
if (!this.hasAttribute("aliasing")) {
|
||||
switch (aEvent.keyCode) {
|
||||
case aEvent.DOM_VK_LEFT:
|
||||
if (this.hasAttribute("open"))
|
||||
this.open();
|
||||
break;
|
||||
|
||||
case aEvent.DOM_VK_RIGHT:
|
||||
if (!this.hasAttribute("open"))
|
||||
this.open();
|
||||
break;
|
||||
case aEvent.DOM_VK_RIGHT:
|
||||
if (!this.hasAttribute("open"))
|
||||
this.open();
|
||||
break;
|
||||
}
|
||||
}
|
||||
this._keyPress(aEvent); // inherited actions.
|
||||
]]>
|
||||
|
|
Загрузка…
Ссылка в новой задаче