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

Fix wheel scrolling in the MOW.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-24 09:21:31 -05:00
parent 8980c91978
commit 304d4fffd7
6 changed files with 13 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ var CommandWidgets = Class("CommandWidgets", {
init: function () {
let _status = "dactyl-statusline-field-";
XML.ignoreWhitespace = true;
util.overlayWindow(window, {
append: <e4x xmlns={XUL} xmlns:dactyl={NS}>
<window id={document.documentElement.id}>
@@ -166,10 +167,9 @@ var CommandWidgets = Class("CommandWidgets", {
let fontSize = util.computedStyle(document.documentElement).fontSize;
styles.registerSheet("resource://dactyl-skin/dactyl.css");
styles.system.add("font-size", "dactyl://content/buffer.xhtml",
"body { font-size: " + fontSize + "; }");
},
cleanup: function cleanup() {
styles.unregisterSheet("resource://dactyl-skin/dactyl.css");
"body { font-size: " + fontSize + "; } \
html|html > xul|scrollbar { visibility: collapse !important; }",
true);
},
addElement: function (obj) {
const self = this;
@@ -474,6 +474,9 @@ var CommandLine = Module("commandline", {
dactyl.trapErrors(callback, self, value != null ? value : commandline.command);
}
},
cleanup: function cleanup() {
styles.unregisterSheet("resource://dactyl-skin/dactyl.css");
},
/**
* Determines whether the command line should be visible.

View File

@@ -212,6 +212,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
bell: document.getElementById("dactyl-bell"),
strut: document.getElementById("dactyl-bell-strut")
}
XML.ignoreWhitespace = true;
if (!elems.bell)
util.overlayWindow(window, {
objects: elems,

View File

@@ -223,6 +223,7 @@ var Events = Module("events", {
init: function () {
const self = this;
XML.ignoreWhitespace = true;
util.overlayWindow(window, {
append: <e4x xmlns={XUL}>
<window id={document.documentElement.id}>

View File

@@ -39,6 +39,7 @@ var StatusLine = Module("statusline", {
]]>)({ padding: util.OS.isMacOSX ? "padding-right: 10px !important;" : "" }));
}
XML.ignoreWhitespace = true;
let _commandline = "if (window.dactyl) return dactyl.modules.commandline";
let prepend = <e4x xmlns={XUL} xmlns:dactyl={NS}>
<statusbar id="status-bar" highlight="StatusLine">

View File

@@ -83,14 +83,14 @@ var actions = {
enable: {
name: "exte[nable]",
description: "Enable an extension",
action: function (addon) addon.userDisabled = false,
action: function (addon) { addon.userDisabled = false; },
filter: function ({ item }) item.userDisabled,
perm: "enable"
},
disable: {
name: "extd[isable]",
description: "Disable an extension",
action: function (addon) addon.userDisabled = true,
action: function (addon) { addon.userDisabled = true; },
filter: function ({ item }) !item.userDisabled,
perm: "disable"
},
@@ -125,7 +125,7 @@ var actions = {
toggle: {
name: "extt[oggle]",
description: "Toggle an extension's enabled status",
action: function (addon) addon.userDisabled = !addon.userDisabled
action: function (addon) { addon.userDisabled = !addon.userDisabled; }
},
update: {
name: "extu[pdate]",

View File

@@ -187,7 +187,6 @@ statusbarpanel {
.dactyl-completions,
#dactyl-multiline-output,
#dactyl-multiline-input {
overflow: hidden;
background-color: white;
color: black;
}