Skip to content

Commit 61cb21a

Browse files
committed
Fix #6830 "Toolbox keyboard shortcuts for controls are missing"
- regressed with #6707
1 parent 59a367d commit 61cb21a

File tree

1 file changed

+6
-6
lines changed
  • form-builder/jvm/src/main/resources/forms/orbeon/builder/service

1 file changed

+6
-6
lines changed

form-builder/jvm/src/main/resources/forms/orbeon/builder/service/toolbox.xsl

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@
4646
<!-- TODO: what if missing? -->
4747
<xsl:copy-of select="$metadata"/>
4848

49-
<!-- Copy all the scripts and bindings -->
50-
<xsl:for-each select="$resources/xbl:xbl/xbl:binding[exists(fb:metadata)]">
51-
<xsl:copy>
52-
<xsl:apply-templates select="@* | fb:metadata"/>
53-
</xsl:copy>
54-
</xsl:for-each>
49+
<!-- Process bindings with metadata -->
50+
<xsl:apply-templates select="$resources/xbl:xbl/xbl:binding[exists(fb:metadata)]"/>
5551
</xbl:xbl>
5652
</xsl:if>
5753

@@ -106,4 +102,8 @@
106102
<xsl:apply-templates select="node()"/>
107103
</xsl:copy>
108104
</xsl:template>
105+
106+
<!-- Filter out unneeded elements -->
107+
<xsl:template match="xbl:resources | xbl:handlers | xbl:implementation | xbl:template"/>
108+
109109
</xsl:transform>

0 commit comments

Comments
 (0)