From 6d48ed2e9ec7aa14d4d34aeee15a07ceaa426e73 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 16 Feb 2014 21:29:55 -0800 Subject: [PATCH] Always show the navbar in customize mode. --- common/content/dactyl.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index ab2bfcf7..cde35162 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -817,6 +817,20 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { }, events: { + beforecustomization: function onbeforecustomization(event) { + // Show navigation bar on Australis, where it's not supposed + // to be collapsible, and is therefore not handled by + // builtin code. + if ("CustomizableUI" in window) + this.setNodeVisible(document.getElementById("nav-bar"), + true); + }, + + aftercustomization: function onaftercustomization(event) { + // Restore toolbar states. + options["guioptions"] = options["guioptions"]; + }, + click: function onClick(event) { let elem = event.originalTarget;