From daae81bceaccda3f840045d5ef468e7dac372f56 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 7 Dec 2008 10:23:29 -0500 Subject: [PATCH] Add ;f extended hint mode to focus a frame --- common/content/hints.js | 1 + vimperator/locale/en-US/hints.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/common/content/hints.js b/common/content/hints.js index 786623d1..03c88bd3 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -61,6 +61,7 @@ function Hints() //{{{ const hintModes = { ";": Mode("Focus hint", function (elem) buffer.focusElement(elem), extended), a: Mode("Save hint with prompt", function (elem) buffer.saveLink(elem, false)), + f: Mode("Focus frame", function (elem) elem.ownerDocument.defaultView.focus(), function () "//body | //html|body"), s: Mode("Save hint", function (elem) buffer.saveLink(elem, true)), o: Mode("Follow hint", function (elem) buffer.followLink(elem, liberator.CURRENT_TAB)), t: Mode("Follow hint in a new tab", function (elem) buffer.followLink(elem, liberator.NEW_TAB)), diff --git a/vimperator/locale/en-US/hints.txt b/vimperator/locale/en-US/hints.txt index 388e3ea3..3abc4320 100644 --- a/vimperator/locale/en-US/hints.txt +++ b/vimperator/locale/en-US/hints.txt @@ -42,6 +42,7 @@ this hint mode. Then press [a]24[a] to copy the hint location. * [m];[m] to focus a link and hover it with the mouse * [m]?[m] to show information about the element (incomplete) * [m]a[m] to save its destination (prompting for save location) +* [m]f[m] to focus a frame * [m]s[m] to save its destination * [m]o[m] to open its location in the current tab * [m]t[m] to open its location in a new tab