mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 17:37:57 +01:00
Collapse bloody focus region selection after following a hint.
This commit is contained in:
@@ -492,7 +492,7 @@ var Buffer = Module("buffer", {
|
||||
*/
|
||||
followLink: function followLink(elem, where) {
|
||||
let doc = elem.ownerDocument;
|
||||
let view = doc.defaultView;
|
||||
let win = doc.defaultView;
|
||||
let { left: offsetX, top: offsetY } = elem.getBoundingClientRect();
|
||||
|
||||
if (isinstance(elem, [HTMLFrameElement, HTMLIFrameElement]))
|
||||
@@ -535,6 +535,8 @@ var Buffer = Module("buffer", {
|
||||
ctrlKey: ctrlKey, shiftKey: shiftKey, metaKey: ctrlKey
|
||||
}));
|
||||
});
|
||||
let sel = util.selectionController(win);
|
||||
sel.getSelection(sel.SELECTION_FOCUS_REGION).collapseToStart();
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user