From aad4513874ce401e37be72c4a9b22e30049ddb51 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 11 Jul 2007 05:04:56 +0000 Subject: [PATCH] move the global function focusNextFrame to a slot on vimperator - vimperator.shiftFrameFocus --- chrome/content/vimperator/commands.js | 2 +- chrome/content/vimperator/mappings.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index b07b68fa..a1477588 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -1186,7 +1186,7 @@ function isDirectory(url) /////////////////////////////////////////////////////////////////////{{{ // TODO: allow callback for filtering out unwanted frames? User defined? -function focusNextFrame(count, forward) +Vimperator.prototype.shiftFrameFocus = function(count, forward) { try { diff --git a/chrome/content/vimperator/mappings.js b/chrome/content/vimperator/mappings.js index 047bf375..7615c19b 100644 --- a/chrome/content/vimperator/mappings.js +++ b/chrome/content/vimperator/mappings.js @@ -210,7 +210,7 @@ function Mappings() //{{{ } )); addDefaultMap(new Map(vimperator.modes.NORMAL, ["]f"], - function(count) { focusNextFrame(count > 1 ? count : 1, true); }, + function(count) { vimperator.shiftFrameFocus(count > 1 ? count : 1, true); }, { short_help: "Focus next frame", help: "Transfers keyboard focus to the [count]th next frame in order. The newly focused frame is briefly colored red.", @@ -218,7 +218,7 @@ function Mappings() //{{{ } )); addDefaultMap(new Map(vimperator.modes.NORMAL, ["[f"], - function(count) { focusNextFrame(count > 1 ? count : 1, false); }, + function(count) { vimperator.shiftFrameFocus(count > 1 ? count : 1, false); }, { short_help: "Focus previous frame", help: "Transfers keyboard focus to the [count]th previous frame in order. The newly focused frame is briefly colored red.",