1
0
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:
Kris Maglione
2011-03-23 14:16:18 -04:00
parent 5f4bf0537a
commit 46e8d43429
5 changed files with 8 additions and 9 deletions

View File

@@ -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();
});
},