mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-28 20:55:46 +01:00
[bootstrap] Add a :rehash (temporarily undocumented) command.
--HG-- branch : bootstrapped
This commit is contained in:
@@ -255,6 +255,8 @@ const CommandWidgets = Class("CommandWidgets", {
|
||||
let elem = this.multilineOutput;
|
||||
elem.contentWindow.addEventListener("unload", function (event) { event.preventDefault(); }, true);
|
||||
elem.contentDocument.body.id = "dactyl-multiline-output-content";
|
||||
elem.__defineGetter__("atEnd", function ()
|
||||
!Buffer.isScrollable(elem.contentDocument.documentElement, 1));
|
||||
|
||||
["copy", "copylink", "selectall"].forEach(function (tail) {
|
||||
// some host apps use "hostPrefixContext-copy" ids
|
||||
@@ -617,6 +619,8 @@ const CommandLine = Module("commandline", {
|
||||
this.widgets.message = null;
|
||||
if (modes.main != modes.COMMAND_LINE)
|
||||
this.widgets.command = null;
|
||||
if ((modes.extended & modes.OUTPUT_MULTILINE) && this.widgets.multilineOutput.atEnd)
|
||||
modes.pop();
|
||||
if (modes.extended != modes.OUTPUT_MULTILINE)
|
||||
this.multilineOutputVisible = false;
|
||||
},
|
||||
|
||||
@@ -1865,10 +1865,13 @@ const Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
|
||||
bang: true
|
||||
});
|
||||
|
||||
commands.add(["reh[ash]"],
|
||||
"Reload the " + config.appName + " add-on",
|
||||
function () { util.rehash(); });
|
||||
|
||||
commands.add(["res[tart]"],
|
||||
"Force " + config.appName + " to restart",
|
||||
function () { dactyl.restart(); },
|
||||
{ argCount: "0" });
|
||||
function () { dactyl.restart(); });
|
||||
|
||||
var toolbox = document.getElementById("navigator-toolbox");
|
||||
if (toolbox) {
|
||||
|
||||
Reference in New Issue
Block a user