mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 988297 - Language is changed if up/down arrow keys are used while translation infobar displays the error message, r=felipe.
This commit is contained in:
parent
4842179671
commit
eb3099ec3c
@ -98,8 +98,19 @@
|
|||||||
</content>
|
</content>
|
||||||
<implementation>
|
<implementation>
|
||||||
<property name="state"
|
<property name="state"
|
||||||
onget="return this._getAnonElt('translationStates').selectedIndex;"
|
onget="return this._getAnonElt('translationStates').selectedIndex;">
|
||||||
onset="this._getAnonElt('translationStates').selectedIndex = val;"/>
|
<setter>
|
||||||
|
<![CDATA[
|
||||||
|
let deck = this._getAnonElt('translationStates');
|
||||||
|
|
||||||
|
let activeElt = document.activeElement;
|
||||||
|
if (activeElt && deck.contains(activeElt))
|
||||||
|
activeElt.blur();
|
||||||
|
|
||||||
|
deck.selectedIndex = val;
|
||||||
|
]]>
|
||||||
|
</setter>
|
||||||
|
</property>
|
||||||
|
|
||||||
<method name="init">
|
<method name="init">
|
||||||
<parameter name="aTranslation"/>
|
<parameter name="aTranslation"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user