1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 07:45:47 +01:00

Import the bulk of a focus management patch near the top of my queue.

This commit is contained in:
Kris Maglione
2010-12-18 15:27:45 -05:00
parent 0af241568b
commit 4ff7172c77
8 changed files with 81 additions and 48 deletions

View File

@@ -340,7 +340,7 @@ const RangeFind = Class("RangeFind", {
var node = util.evaluateXPath(RangeFind.selectNodePath, this.range.document,
this.lastRange.commonAncestorContainer).snapshotItem(0);
if (node) {
node.focus();
dactyl.focus(node);
// Re-highlight collapsed selection
this.selectedRange = this.lastRange;
}