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.",