зеркало из https://github.com/mozilla/pjs.git
Restore Ctrl+0 for resetting text size.
This commit is contained in:
Родитель
bcde972e02
Коммит
8976eb32f5
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче