Add accel+0 to reset text zoom to 100%. bug=69565, r=Hixie, a=ben

This commit is contained in:
disttsc%bart.nl 2006-07-29 05:36:27 +00:00
Родитель c3287da9e7
Коммит 22df1ab6b4
3 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -98,6 +98,10 @@ ZoomManager.prototype = {
this.jump(-1);
},
reset : function() {
this.textZoom = 100;
},
getZoomFactors : function() {
this.ensureZoomFactors();

Просмотреть файл

@ -52,11 +52,13 @@
<key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;" observes="cmd_textZoomEnlarge" modifiers="accel"/>
<key key="&textZoomEnlargeCmd.commandkey;" observes="cmd_textZoomEnlarge" modifiers="accel,shift"/>
<key key="&textZoomEnlargeCmd.commandkey2;" observes="cmd_textZoomEnlarge" modifiers="accel"/>
<key key="&textZoomResetCmd.commandkey;" observes="cmd_textZoomReset" modifiers="accel"/>
</keyset>
<broadcasterset id="broadcasterset">
<broadcaster id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
<broadcaster id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
<broadcaster id="cmd_textZoomReset" oncommand="ZoomManager.prototype.getInstance().reset();"/>
</broadcasterset>
<menu id="menu_textZoom" accesskey="&textZoomMenu.accesskey;" hidden="true">

Просмотреть файл

@ -7,6 +7,8 @@
<!ENTITY textZoomReduceCmd.accesskey "m">
<!ENTITY textZoomReduceCmd.commandkey "-">
<!ENTITY textZoomResetCmd.commandkey "0">
<!-- see textZoomOtherLabel in navigator.properties -->
<!ENTITY textZoomMenu.accesskey "z">
<!ENTITY textZoomOtherCmd.accesskey "o">