mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 07:28:00 +01:00
Fix rare initialization order issue.
This commit is contained in:
@@ -39,8 +39,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
|
|
||||||
styles.registerSheet("resource://dactyl-skin/dactyl.css");
|
styles.registerSheet("resource://dactyl-skin/dactyl.css");
|
||||||
|
|
||||||
prefs.safeSet("accessibility.typeaheadfind.autostart", false);
|
|
||||||
|
|
||||||
this.cleanups = [];
|
this.cleanups = [];
|
||||||
this.cleanups.push(util.overlayObject(window, {
|
this.cleanups.push(util.overlayObject(window, {
|
||||||
focusAndSelectUrlBar: function focusAndSelectUrlBar() {
|
focusAndSelectUrlBar: function focusAndSelectUrlBar() {
|
||||||
|
|||||||
@@ -31,6 +31,12 @@ var RangeFinder = Module("rangefinder", {
|
|||||||
set rangeFind(val) modules.buffer.localStore.rangeFind = val
|
set rangeFind(val) modules.buffer.localStore.rangeFind = val
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
init: function init() {
|
||||||
|
prefs.safeSet("accessibility.typeaheadfind.autostart", false);
|
||||||
|
// The above should be sufficient, but: https://bugzilla.mozilla.org/show_bug.cgi?id=348187
|
||||||
|
prefs.safeSet("accessibility.typeaheadfind", false);
|
||||||
|
},
|
||||||
|
|
||||||
get commandline() this.modules.commandline,
|
get commandline() this.modules.commandline,
|
||||||
get modes() this.modules.modes,
|
get modes() this.modules.modes,
|
||||||
get options() this.modules.options,
|
get options() this.modules.options,
|
||||||
@@ -250,10 +256,6 @@ var RangeFinder = Module("rangefinder", {
|
|||||||
const { options, rangefinder } = modules;
|
const { options, rangefinder } = modules;
|
||||||
const { prefs } = require("prefs");
|
const { prefs } = require("prefs");
|
||||||
|
|
||||||
// prefs.safeSet("accessibility.typeaheadfind.autostart", false);
|
|
||||||
// The above should be sufficient, but: https://bugzilla.mozilla.org/show_bug.cgi?id=348187
|
|
||||||
prefs.safeSet("accessibility.typeaheadfind", false);
|
|
||||||
|
|
||||||
options.add(["hlfind", "hlf"],
|
options.add(["hlfind", "hlf"],
|
||||||
"Highlight all /find pattern matches on the current page after submission",
|
"Highlight all /find pattern matches on the current page after submission",
|
||||||
"boolean", false, {
|
"boolean", false, {
|
||||||
|
|||||||
Reference in New Issue
Block a user