mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-14 01:55:46 +01:00
Prepare for merge with testing branch.
This commit is contained in:
@@ -326,10 +326,10 @@ const RangeFind = Class("RangeFind", {
|
||||
},
|
||||
|
||||
focus: function() {
|
||||
if(this.lastRange)
|
||||
if (this.lastRange)
|
||||
var node = util.evaluateXPath(RangeFind.selectNodePath, this.range.document,
|
||||
this.lastRange.commonAncestorContainer).snapshotItem(0);
|
||||
if(node) {
|
||||
if (node) {
|
||||
node.focus();
|
||||
// Rehighlight collapsed selection
|
||||
this.selectedRange = this.lastRange;
|
||||
|
||||
Reference in New Issue
Block a user