Add a context menu to viewsource. Bug 39389, patch by Doron

<doronr@naboonline.com>, r=bzbarsky, sr=alecf
This commit is contained in:
bzbarsky%mit.edu 2001-09-26 19:25:10 +00:00
parent d9eb6fadde
commit f44822f26f
2 changed files with 16 additions and 1 deletions

View File

@ -96,6 +96,17 @@
<keyset id="viewZoomKeys"/>
</keyset>
<!-- context menu -->
<popupset id="viewSourceContextSet">
<popup id="viewSourceContextMenu">
<menuitem label="&findNextCmd.label;" accesskey="&findNextCmd.accesskey;" command="Browser:FindAgain"/>
<menuseparator/>
<menuitem id="menu_copy_cm" label="&copyCmd.label;" accesskey="&copyCmd.accesskey;" observes="cmd_copy"/>
<menuseparator/>
<menuitem id="menu_selectAll_cm" label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;" observes="cmd_selectAll"/>
</popup>
</popupset>
<!-- Menu -->
<toolbox>
<menubar id="zmain-menubar">
@ -160,7 +171,8 @@
ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);"
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
<browser id="content" type="content-primary" name="content" src="about:blank" flex="1"/>
<browser id="content" type="content-primary" name="content" src="about:blank" flex="1"
context="viewSourceContextMenu"/>
</vbox>

View File

@ -9,3 +9,6 @@
<!ENTITY mainWindow.preface "Source of: ">
<!ENTITY menu_wrapLongLines.title "Wrap Long Lines">
<!ENTITY findNextCmd.label "Find Next">
<!ENTITY findNextCmd.accesskey "n">