Restore Ctrl+0 for resetting text size.
git-svn-id: svn://10.0.0.236/trunk@132920 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user