mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Restore Ctrl+0 for resetting text size.
This commit is contained in:
parent
124c9697d0
commit
ac009b4d4c
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user