mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
Bug 458478 - HW Zoom keys support for fennec. r=mark.finkle.
This commit is contained in:
parent
d194e04481
commit
73329bcf74
@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -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"/>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user