1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 06:07:59 +01:00

Fix :help focus issues. Closes issue #169.

This commit is contained in:
Kris Maglione
2010-12-18 14:55:53 -05:00
parent ad44ca26d5
commit 0af241568b
2 changed files with 5 additions and 1 deletions

View File

@@ -294,7 +294,10 @@ const Buffer = Module("buffer", {
frame.dactylFocusAllowed = false;
// Workaround for bugs 591425 and 606877, dactyl bug #81
config.browser.mCurrentBrowser.collapsed =
let collapse = uri && uri.scheme === "dactyl" && webProgress.isLoadingDocument;
if (collapse)
config.focus.setFocus(window.documentElement);
config.browser.mCurrentBrowser.collapsed = collapse;
uri && uri.scheme === "dactyl" && webProgress.isLoadingDocument;
util.timeout(function () {

View File

@@ -36,6 +36,7 @@ const Services = Module("Services", {
this.add("environment", "@mozilla.org/process/environment;1", Ci.nsIEnvironment);
this.add("extensionManager", "@mozilla.org/extensions/manager;1", Ci.nsIExtensionManager);
this.add("favicon", "@mozilla.org/browser/favicon-service;1", Ci.nsIFaviconService);
this.add("focus", "@mozilla.org/focus-manager;1", Ci.nsIFocusManager);
this.add("history", "@mozilla.org/browser/global-history;2", [Ci.nsIBrowserHistory, Ci.nsIGlobalHistory3,
Ci.nsINavHistoryService, Ci.nsPIPlacesDatabase]);
this.add("io", "@mozilla.org/network/io-service;1", Ci.nsIIOService);