Bug 187511. Add Find As You Type to menus. r=brade, sr=dveditz.
git-svn-id: svn://10.0.0.236/trunk@205721 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e14e7fb2be
commit
5a9c748c1f
@ -304,6 +304,13 @@ function goUpdatePasteMenuItems()
|
||||
goUpdateCommand('cmd_paste');
|
||||
}
|
||||
|
||||
// update Find As You Type menu items, they rely on focus
|
||||
function goUpdateFindTypeMenuItems()
|
||||
{
|
||||
goUpdateCommand('cmd_findTypeText');
|
||||
goUpdateCommand('cmd_findTypeLinks');
|
||||
}
|
||||
|
||||
// function that extracts the filename from a url
|
||||
function extractFileNameFromUrl(urlstr)
|
||||
{
|
||||
|
||||
@ -132,6 +132,16 @@
|
||||
key="key_selectAll"
|
||||
accesskey="&selectAllCmd.accesskey;"
|
||||
command="cmd_selectAll"/>
|
||||
<menuitem id="menu_findTypeText"
|
||||
label="&findTypeTextCmd.label;"
|
||||
key="key_findTypeText"
|
||||
accesskey="&findTypeTextCmd.accesskey;"
|
||||
command="cmd_findTypeText"/>
|
||||
<menuitem id="menu_findTypeLinks"
|
||||
label="&findTypeLinksCmd.label;"
|
||||
key="key_findTypeLinks"
|
||||
accesskey="&findTypeLinksCmd.accesskey;"
|
||||
command="cmd_findTypeLinks"/>
|
||||
|
||||
<!-- These key nodes are here only for show. The real bindings come from
|
||||
XBL, in platformHTMLBindings.xml. See bugs 57078 and 71779. -->
|
||||
@ -151,6 +161,10 @@
|
||||
<key id="key_paste"
|
||||
key="&pasteCmd.key;"
|
||||
modifiers="accel"/>
|
||||
<key id="key_findTypeText"
|
||||
key="&findTypeTextCmd.key;"/>
|
||||
<key id="key_findTypeLinks"
|
||||
key="&findTypeLinksCmd.key;"/>
|
||||
|
||||
<commandset id="globalEditMenuItems"
|
||||
commandupdater="true"
|
||||
@ -168,6 +182,10 @@
|
||||
commandupdater="true"
|
||||
events="clipboard"
|
||||
oncommandupdate="goUpdatePasteMenuItems()"/>
|
||||
<commandset id="findTypeMenuItems"
|
||||
commandupdater="true"
|
||||
events="focus"
|
||||
oncommandupdate="goUpdateFindTypeMenuItems()"/>
|
||||
|
||||
<command id="cmd_copyLink"
|
||||
oncommand="goDoCommand('cmd_copyLink')"
|
||||
@ -200,6 +218,10 @@
|
||||
<command id="cmd_selectAll"
|
||||
oncommand="goDoCommand('cmd_selectAll')"
|
||||
disabled="true"/>
|
||||
<command id="cmd_findTypeText"
|
||||
oncommand="goDoCommand('cmd_findTypeText')"/>
|
||||
<command id="cmd_findTypeLinks"
|
||||
oncommand="goDoCommand('cmd_findTypeLinks')"/>
|
||||
|
||||
<!-- Not needed yet, window will need this: -->
|
||||
<!-- broadcaster id="cmd_preferences"/ -->
|
||||
|
||||
@ -46,6 +46,12 @@
|
||||
<!ENTITY preferencesCmd.label "Preferences...">
|
||||
<!ENTITY preferencesCmd.key "E">
|
||||
<!ENTITY preferencesCmd.accesskey "e">
|
||||
<!ENTITY findTypeTextCmd.label "Find Text As You Type">
|
||||
<!ENTITY findTypeTextCmd.key "/">
|
||||
<!ENTITY findTypeTextCmd.accesskey "x">
|
||||
<!ENTITY findTypeLinksCmd.label "Find Links As You Type">
|
||||
<!ENTITY findTypeLinksCmd.key "'">
|
||||
<!ENTITY findTypeLinksCmd.accesskey "k">
|
||||
|
||||
<!ENTITY viewMenu.label "View">
|
||||
<!ENTITY viewMenu.accesskey "v">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user