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:
Florian Quèze 2014-05-22 15:12:53 +02:00
parent 4842179671
commit eb3099ec3c

View File

@ -98,8 +98,19 @@
</content>
<implementation>
<property name="state"
onget="return this._getAnonElt('translationStates').selectedIndex;"
onset="this._getAnonElt('translationStates').selectedIndex = val;"/>
onget="return this._getAnonElt('translationStates').selectedIndex;">
<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">
<parameter name="aTranslation"/>