<!ENTITY common.browser.print.accesskey "P">
<!ENTITY common.browser.help.label "Help">
<!ENTITY common.browser.help.accesskey "H">
+<!ENTITY common.browser.find.label "Find in Page">
+<!ENTITY common.browser.find.accesskey "i">
+<!ENTITY common.browser.set_url.label "Modify URL">
+<!ENTITY common.browser.set_url.accesskey "U">
<!ENTITY common.textbox.cut "Cut">
<!ENTITY common.textbox.copy "Copy">
endPt.setStart(body, count);
endPt.setEnd(body, count);
var retRange = finder.Find(text, searchRange, startPt, endPt);
- alert('retRange = ' + retRange );
+ dump('retRange = ' + retRange + '\n');
setSelection(retRange);
} catch(E) {
alert('Error in browser.js, find(): ' + E);
<command id="cmd_forward" label="&common.browser.forward.label;" accesskey="&common.browser.forward.accesskey;" />
</commandset>
+ <popupset>
+ <popup id="debug_popup">
+ <menuitem label="&common.browser.set_url.label;" accesskey="&common.browser.set_url.accesskey;" command="cmd_debug" />
+ <menuitem label="&common.browser.find.label;" accesskey="&common.browser.find.accesskey;" command="cmd_find" />
+ </popup>
+ </popupset>
+
<vbox flex="1">
<hbox>
<button id="back" command="cmd_back" disabled="true" hidden="true"/>
<button id="reload" command="cmd_reload" disabled="false" hidden="false"/>
<button id="forward" command="cmd_forward" disabled="true" hidden="true"/>
<spacer flex="1"/>
- <label id="debug" value="Debug" disabled="true" command="cmd_debug" onclick="this.doCommand();" />
+ <label id="debug" value="Debug" disabled="true" popup="debug_popup" />
<button id="browser_print" command="cmd_print" hidden="true"/>
<button id="browser_find" label="Find in Page" command="cmd_find" hidden="false"/>
</hbox>
<command id="cmd_forward" label="&common.browser.forward.label;" accesskey="&common.browser.forward.accesskey;" />
</commandset>
+ <popupset>
+ <popup id="debug_popup">
+ <menuitem label="&common.browser.set_url.label;" accesskey="&common.browser.set_url.accesskey;" command="cmd_debug" />
+ <menuitem label="&common.browser.find.label;" accesskey="&common.browser.find.accesskey;" command="cmd_find" />
+ </popup>
+ </popupset>
+
<vbox flex="1">
<hbox>
<button id="back" command="cmd_back" disabled="true" hidden="true"/>
<button id="reload" command="cmd_reload" disabled="false" hidden="false"/>
<button id="forward" command="cmd_forward" disabled="true" hidden="true"/>
<spacer flex="1"/>
- <label id="debug" value="Debug" disabled="true" command="cmd_debug" onclick="this.doCommand();" />
+ <label id="debug" value="Debug" disabled="true" popup="debug_popup" />
<button id="browser_print" command="cmd_print" hidden="true"/>
<button id="browser_find" label="Find in Page" command="cmd_find" hidden="false"/>
</hbox>