1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 18:35:44 +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();
});
},

View File

@@ -371,13 +371,13 @@ var Modes = Module("modes", {
this.show();
});
delayed.forEach(function ([fn, self]) dactyl.trapErrors(fn, self));
if (this.topOfStack.params.enter && prev)
dactyl.trapErrors("enter", this.topOfStack.params,
push ? { push: push } : stack || {},
prev);
delayed.forEach(function ([fn, self]) dactyl.trapErrors(fn, self));
dactyl.triggerObserver("modes.change", [oldMain, oldExtended], [this._main, this._extended], stack);
this.show();
},

View File

@@ -1071,11 +1071,8 @@ var Tabs = Module("tabs", {
{
values: {
"all": "All commands",
"addons": ":addo[ns] command",
"downloads": ":downl[oads] command",
"extoptions": ":exto[ptions] command",
"help": ":h[elp] command",
"javascript": ":javascript! or :js! command",
"prefs": ":pref[erences]! or :prefs! command"
},
has: Option.has.toggleAll