зеркало из https://github.com/mozilla/pjs.git
Add a context menu to viewsource. Bug 39389, patch by Doron
<doronr@naboonline.com>, r=bzbarsky, sr=alecf
This commit is contained in:
Родитель
41d068930b
Коммит
9dcce23fd4
|
@ -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="©Cmd.label;" accesskey="©Cmd.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>
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче