Accesskeys for themes (75201, patch by neil@parkwaycc.co.uk). r=blake sr=alecf

This commit is contained in:
blakeross%telocity.com 2001-04-29 15:46:34 +00:00
parent a8d842866c
commit b2084a6044
4 changed files with 14 additions and 8 deletions

View File

@ -11,6 +11,7 @@
<!-- classic Information -->
<RDF:Description about="urn:mozilla:skin:classic/1.0"
chrome:displayName="Classic"
chrome:accessKey="C"
chrome:author="mozilla.org"
chrome:description="This theme simulates the familiar appearance of previous Netscape versions for the Mac OS."
chrome:name="classic/1.0"

View File

@ -11,6 +11,7 @@
<!-- classic Information -->
<RDF:Description about="urn:mozilla:skin:classic/1.0"
chrome:displayName="Classic"
chrome:accessKey="C"
chrome:author="mozilla.org"
chrome:description="This theme simulates the familiar appearance of previous Netscape versions for the Windows operating system."
chrome:name="classic/1.0"

View File

@ -11,6 +11,7 @@
<!-- Modern Information -->
<RDF:Description about="urn:mozilla:skin:modern/1.0"
chrome:displayName="Modern"
chrome:accessKey="M"
chrome:author="mozilla.org"
chrome:description="A contemporary theme for all Communicator components."
chrome:name="modern/1.0"

View File

@ -254,15 +254,18 @@
</menu>
<menu id = "charsetMenu" />
<menuseparator/>
<menu label="&applyTheme.label;" accesskey="&applyTheme.accesskey;">
<menupopup datasources="rdf:chrome" ref="urn:mozilla:skin:root" oncommand="applyTheme(event.target)">
<menuitem label="&themePreferencesCmd.label;" accesskey="&themePreferencesCmd.accesskey;"
oncommand="goPreferences('pref-themes.xul','chrome://communicator/content/pref/pref-themes.xul')"/>
<menuitem label="&getNewThemesCmd.label;" accesskey="&getNewThemesCmd.accesskey;" oncommand="getNewThemes();"/>
<menuseparator/>
<menuseparator/>
<menu label="&applyTheme.label;" accesskey="&applyTheme.accesskey;">
<menupopup datasources="rdf:chrome" ref="urn:mozilla:skin:root" oncommand="applyTheme(event.target)">
<menuitem label="&themePreferencesCmd.label;" accesskey="&themePreferencesCmd.accesskey;"
oncommand="goPreferences('pref-themes.xul','chrome://communicator/content/pref/pref-themes.xul')"/>
<menuitem label="&getNewThemesCmd.label;" accesskey="&getNewThemesCmd.accesskey;" oncommand="getNewThemes();"/>
<menuseparator/>
<template>
<menuitem uri="..." label="rdf:http://www.mozilla.org/rdf/chrome#displayName" name="rdf:http://www.mozilla.org/rdf/chrome#name"/>
<menuitem uri="..."
label="rdf:http://www.mozilla.org/rdf/chrome#displayName"
accesskey="rdf:http://www.mozilla.org/rdf/chrome#accessKey"
name="rdf:http://www.mozilla.org/rdf/chrome#name"/>
</template>
</menupopup>
</menu>