From 8976eb32f5474935c664b19aad6a22a4283316bd Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Sun, 3 Nov 2002 14:51:29 +0000 Subject: [PATCH] Restore Ctrl+0 for resetting text size. --- browser/base/content/browser.xul | 1 + browser/base/content/contentAreaUtils.js | 2 +- browser/base/locale/browser.dtd | 1 + toolkit/content/viewZoomOverlay.js | 4 +++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index 466bc47cdd1..d2cf0481fcd 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -236,6 +236,7 @@ + diff --git a/browser/base/content/contentAreaUtils.js b/browser/base/content/contentAreaUtils.js index 75db32f7570..d9f33531f2a 100644 --- a/browser/base/content/contentAreaUtils.js +++ b/browser/base/content/contentAreaUtils.js @@ -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; diff --git a/browser/base/locale/browser.dtd b/browser/base/locale/browser.dtd index 94cf213c178..1c82df0a219 100644 --- a/browser/base/locale/browser.dtd +++ b/browser/base/locale/browser.dtd @@ -242,6 +242,7 @@ + diff --git a/toolkit/content/viewZoomOverlay.js b/toolkit/content/viewZoomOverlay.js index 0b0ec75ab95..70162d3e536 100644 --- a/toolkit/content/viewZoomOverlay.js +++ b/toolkit/content/viewZoomOverlay.js @@ -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)) {