1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 04:32:26 +01:00

Fix addUserMap when key already mapped.

This commit is contained in:
Kris Maglione
2008-11-29 21:32:18 +00:00
parent 2d93e7ab42
commit 50e610e63d
2 changed files with 3 additions and 3 deletions

View File

@@ -305,7 +305,7 @@ function Mappings() //{{{
for (let [,name] in Iterator(map.names)) for (let [,name] in Iterator(map.names))
{ {
for (let [,mode] in Iterator(map.modes)) for (let [,mode] in Iterator(map.modes))
removeMap(mode, map.name); removeMap(mode, name);
} }
addMap(map, true); addMap(map, true);

View File

@@ -11,7 +11,7 @@
xmlns:xbl="http://www.mozilla.org/xbl" xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"> xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="tab" display="xul:hbox" <binding id="tab" display="xul:hbox"
extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tab"> extends="chrome://global/content/bindings/tabbox.xml#tab">
<content chromedir="ltr" closetabtext="Close Tab"> <content chromedir="ltr" closetabtext="Close Tab">
<xul:stack class="liberator-tab-stack"> <xul:stack class="liberator-tab-stack">
<xul:image xbl:inherits="validate,src=image" class="tab-icon-image" liberator:highlight="TabIcon"/> <xul:image xbl:inherits="validate,src=image" class="tab-icon-image" liberator:highlight="TabIcon"/>
@@ -21,7 +21,7 @@
<xul:spring flex="1"/> <xul:spring flex="1"/>
</xul:vbox> </xul:vbox>
</xul:stack> </xul:stack>
<xul:label xbl:inherits="value=ordinal" class="hl-TabNumber"/> <xul:label xbl:inherits="value=ordinal" liberator:highlight="TabNumber"/>
<xul:label flex="1" xbl:inherits="value=label,crop,accesskey" class="tab-text" liberator:highlight="TabText"/> <xul:label flex="1" xbl:inherits="value=label,crop,accesskey" class="tab-text" liberator:highlight="TabText"/>
<xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button" liberator:highlight="TabClose"/> <xul:toolbarbutton anonid="close-button" tabindex="-1" class="tab-close-button" liberator:highlight="TabClose"/>
</content> </content>