Restore Ctrl+0 for resetting text size.

This commit is contained in:
blakeross%telocity.com 2002-11-03 14:51:29 +00:00
parent 124c9697d0
commit ac009b4d4c
4 changed files with 6 additions and 2 deletions

View File

@ -236,6 +236,7 @@
<key id="key_textZoomReduce" key="&textZoomReduceCmd.commandkey;" command="cmd_textZoomReduce" modifiers="accel"/>
<key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel"/>
<key key="&textZoomEnlargeCmd.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
<key key="&textZoomResetCmd.commandkey;" oncommand="ZoomManager.prototype.getInstance().reset();" modifiers="accel"/>
<key id="key_openDownloadsSidebar" key="&openDownloadsSidebar.commandkey;" command="viewDownloadsSidebar" modifiers="accel"/>
</keyset>

View File

@ -195,7 +195,7 @@ function foundHeaderInfo(aSniffer, aData)
return;
var directory = fp.file.parent.QueryInterface(nsILocalFile);
prefs.setComplexValue("dir", nsILocalFile, directory);
// prefs.setComplexValue("dir", nsILocalFile, directory);
fp.file.leafName = validateFileName(fp.file.leafName);
filterIndex = fp.filterIndex;
file = fp.file;

View File

@ -242,6 +242,7 @@
<!ENTITY textZoomReduceCmd.label "Decrease Text Size">
<!ENTITY textZoomReduceCmd.accesskey "D">
<!ENTITY textZoomReduceCmd.commandkey "-">
<!ENTITY textZoomResetCmd.commandkey "0">
<!ENTITY downloadsButton.label "Downloads">
<!ENTITY downloadsButton.tooltip "Displays the progress of ongoing downloads">

View File

@ -91,7 +91,9 @@ ZoomManager.prototype = {
reduce : function() {
this.jump(-1);
},
reset : function() {
this.textZoom = 100;
},
indexOf : function(aZoom) {
var index = -1;
if (this.isZoomInRange(aZoom)) {