Bug 137523 - Add Minimize and Zoom to Window menu. Patch by mano. r=jhpedemonte, sr=neil
git-svn-id: svn://10.0.0.236/trunk@205825 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5994c69879
commit
f2852b2b5e
@ -66,4 +66,30 @@
|
||||
<menuitem id="threadPaneContext-printpreview" hidden="true"/>
|
||||
<menuitem id="messagePaneContext-printpreview" hidden="true"/>
|
||||
|
||||
<!-- Tasks Commands -->
|
||||
<commandset id="tasksCommands">
|
||||
<command id="cmd_minimizeWindow" oncommand="window.minimize();"/>
|
||||
<command id="cmd_zoomWindow" oncommand="ZoomCurrentWindow();"/>
|
||||
</commandset>
|
||||
|
||||
<!-- Tasks Keys -->
|
||||
<keyset id="tasksKeys">
|
||||
<key id="key_minimizeWindow"
|
||||
command="cmd_minimizeWindow"
|
||||
key="&minimizeWindowCmd.key;"
|
||||
modifiers="accel"/>
|
||||
</keyset>
|
||||
|
||||
<!-- Window menu -->
|
||||
<menupopup id="windowPopup">
|
||||
<menuitem command="cmd_minimizeWindow"
|
||||
label="&minimizeWindowCmd.label;"
|
||||
key="key_minimizeWindow"
|
||||
position="1"/>
|
||||
<menuitem command="cmd_zoomWindow"
|
||||
label="&zoomWindowCmd.label;"
|
||||
position="2"/>
|
||||
<menuseparator position="3"/>
|
||||
</menupopup>
|
||||
|
||||
</overlay>
|
||||
|
||||
@ -244,3 +244,11 @@ function toProfileManager()
|
||||
// that was returned in the param block.
|
||||
}
|
||||
|
||||
// This function is used by mac's platformCommunicatorOverlay
|
||||
function ZoomCurrentWindow()
|
||||
{
|
||||
if (window.windowState == STATE_NORMAL)
|
||||
window.maximize();
|
||||
else
|
||||
window.restore();
|
||||
}
|
||||
|
||||
@ -19,3 +19,7 @@
|
||||
<!ENTITY findTypeLinksCmd.key "">
|
||||
|
||||
<!ENTITY accel.emacs_conflict "accel">
|
||||
|
||||
<!ENTITY minimizeWindowCmd.label "Minimize">
|
||||
<!ENTITY minimizeWindowCmd.key "M">
|
||||
<!ENTITY zoomWindowCmd.label "Zoom">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user