mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 00:27:57 +01:00
made zoom functions thunderbird compatible
This commit is contained in:
@@ -47,9 +47,9 @@ vimperator.Buffer = function () //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (fullZoom)
|
if (fullZoom)
|
||||||
getBrowser().mCurrentBrowser.markupDocumentViewer.fullZoom = value / 100.0;
|
getBrowser().markupDocumentViewer.fullZoom = value / 100.0;
|
||||||
else
|
else
|
||||||
getBrowser().mCurrentBrowser.markupDocumentViewer.textZoom = value / 100.0;
|
getBrowser().markupDocumentViewer.textZoom = value / 100.0;
|
||||||
|
|
||||||
vimperator.echo((fullZoom ? "Full zoom: " : "Text zoom: ") + value + "%");
|
vimperator.echo((fullZoom ? "Full zoom: " : "Text zoom: ") + value + "%");
|
||||||
|
|
||||||
@@ -63,9 +63,9 @@ vimperator.Buffer = function () //{{{
|
|||||||
function bumpZoomLevel(steps, fullZoom)
|
function bumpZoomLevel(steps, fullZoom)
|
||||||
{
|
{
|
||||||
if (fullZoom)
|
if (fullZoom)
|
||||||
var value = getBrowser().mCurrentBrowser.markupDocumentViewer.fullZoom * 100.0;
|
var value = getBrowser().markupDocumentViewer.fullZoom * 100.0;
|
||||||
else
|
else
|
||||||
var value = getBrowser().mCurrentBrowser.markupDocumentViewer.textZoom * 100.0;
|
var value = getBrowser().markupDocumentViewer.textZoom * 100.0;
|
||||||
|
|
||||||
var index = -1;
|
var index = -1;
|
||||||
if (steps <= 0)
|
if (steps <= 0)
|
||||||
@@ -208,7 +208,7 @@ vimperator.Buffer = function () //{{{
|
|||||||
|
|
||||||
get textZoom()
|
get textZoom()
|
||||||
{
|
{
|
||||||
return getBrowser().mCurrentBrowser.markupDocumentViewer.textZoom * 100;
|
return getBrowser().markupDocumentViewer.textZoom * 100;
|
||||||
},
|
},
|
||||||
set textZoom(value)
|
set textZoom(value)
|
||||||
{
|
{
|
||||||
@@ -217,7 +217,7 @@ vimperator.Buffer = function () //{{{
|
|||||||
|
|
||||||
get fullZoom()
|
get fullZoom()
|
||||||
{
|
{
|
||||||
return getBrowser().mCurrentBrowser.markupDocumentViewer.fullZoom * 100;
|
return getBrowser().markupDocumentViewer.fullZoom * 100;
|
||||||
},
|
},
|
||||||
set fullZoom(value)
|
set fullZoom(value)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1272,7 +1272,7 @@ vimperator.Events = function () //{{{
|
|||||||
switch (aData)
|
switch (aData)
|
||||||
{
|
{
|
||||||
case "accessibility.browsewithcaret":
|
case "accessibility.browsewithcaret":
|
||||||
var value = vimperator.options.getFirefoxPref("accessibility.browsewithcaret", false);
|
var value = vimperator.options.getPref("accessibility.browsewithcaret", false);
|
||||||
vimperator.mode = value ? vimperator.modes.CARET : vimperator.modes.NORMAL;
|
vimperator.mode = value ? vimperator.modes.CARET : vimperator.modes.NORMAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user