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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user