Adding accelerators for Task menu items (51418). r=slamm

This commit is contained in:
mcafee%netscape.com 2006-07-29 05:34:18 +00:00
Родитель 4fb52880cc
Коммит 415bdfef91
2 изменённых файлов: 18 добавлений и 7 удалений

Просмотреть файл

@ -14,9 +14,19 @@
<overlay id="tasksOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script language="JavaScript" src="chrome://communicator/content/tasksOverlay.js"/>
<script language="JavaScript" src="chrome://communicator/content/tasksOverlay.js"/>
<keyset id="keyset">
<key id="key_navigator" xulkey="true" key="&navigatorCmd.commandkey;" observes="Tasks:Navigator"/>
</keyset>
<broadcasterset id="broadcasterset">
<broadcaster id="Tasks:Navigator" value="&navigatorCmd.label;" oncommand="toNavigator();"/>
</broadcasterset>
<broadcasterset id="broadcasterset"/>
<!-- Tasks Menu -->
<menu id="tasksMenu" value="&tasksMenu.label;" accesskey="&tasksMenu.accesskey;" datasources="rdf:window-mediator" ref="NC:WindowMediatorRoot">
@ -29,7 +39,7 @@
</template>
<menupopup id="taskPopup">
<menuitem value="&navigatorCmd.label;" accesskey="&navigatorCmd.accesskey;" oncommand="toNavigator()"/>
<menuitem accesskey="&navigatorCmd.accesskey;" key="key_navigator" observes="Tasks:Navigator"/>
<menuitem value="&editorCmd.label;" accesskey="&editorCmd.accesskey;" oncommand="toEditor();" />
<menuseparator/>

Просмотреть файл

@ -3,7 +3,8 @@
<!ENTITY tasksMenu.accesskey "t">
<!-- LOCALIZATION NOTE (navigatorCmd.label): DONT_TRANSLATE -->
<!ENTITY navigatorCmd.label "Navigator">
<!ENTITY navigatorCmd.accesskey "n">
<!ENTITY navigatorCmd.accesskey "n">
<!ENTITY navigatorCmd.commandkey "1">
<!-- LOCALIZATION NOTE (editorCmd.label): DONT_TRANSLATE -->
<!ENTITY editorCmd.label "Composer">
<!ENTITY editorCmd.accesskey "c">