Bug 458478 - HW Zoom keys support for fennec. r=mark.finkle.

This commit is contained in:
Oleg Romashin 2008-10-09 23:11:27 -05:00
parent d194e04481
commit 73329bcf74
3 changed files with 14 additions and 0 deletions

View File

@ -851,6 +851,8 @@ var BrowserUI = {
case "cmd_actions":
case "cmd_panel":
case "cmd_sanitize":
case "cmd_zoomin":
case "cmd_zoomout":
isSupported = true;
break;
default:
@ -928,6 +930,12 @@ var BrowserUI = {
this.show(mode);
break;
}
case "cmd_zoomin":
Browser.content.zoom(-1);
break;
case "cmd_zoomout":
Browser.content.zoom(1);
break;
}
}
};

View File

@ -104,6 +104,8 @@
<command id="cmd_actions" oncommand="CommandUpdater.doCommand(this.id);"/>
<command id="cmd_panel" oncommand="CommandUpdater.doCommand(this.id);"/>
<command id="cmd_sanitize" oncommand="CommandUpdater.doCommand(this.id);"/>
<command id="cmd_zoomin" oncommand="CommandUpdater.doCommand(this.id);"/>
<command id="cmd_zoomout" oncommand="CommandUpdater.doCommand(this.id);"/>
<!-- scrolling -->
<command id="cmd_scrollPageUp" oncommand="CommandUpdater.doCommand(this.id);"/>
@ -138,6 +140,8 @@
<!-- misc -->
<key id="key_menu" keycode="VK_F4" command="cmd_menu"/>
<key id="key_fullscreen" keycode="VK_F6" command="cmd_fullscreen"/>
<key id="key_zoomin" keycode="VK_F7" command="cmd_zoomin"/>
<key id="key_zoomout" keycode="VK_F8" command="cmd_zoomout"/>
<!-- tabs -->
<key id="key_newTab" key="T" modifiers="accel" command="cmd_newTab"/>

View File

@ -26,3 +26,5 @@ cmd_closeTab.name=Close current tab
cmd_actions.name=Open Actions list
cmd_panel.name=Open panel of stuff
cmd_sanitize.name=Delete all saved personal information
cmd_zoomin.name=Zoom In
cmd_zoomout.name=Zoom Out