1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 03:34:11 +01:00

Fix <C-v> in PASS THROUGH mode. Closes issue #223.

This commit is contained in:
Kris Maglione
2010-12-31 17:19:40 -05:00
parent ce6d472a76
commit 3c80d33c67
4 changed files with 6 additions and 4 deletions

View File

@@ -64,6 +64,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
mod.destroy(); mod.destroy();
} }
} }
for (let name in values(Object.getOwnPropertyNames(modules).reverse())) for (let name in values(Object.getOwnPropertyNames(modules).reverse()))
try { try {
delete modules[name]; delete modules[name];

View File

@@ -108,7 +108,7 @@ var Modes = Module("modes", {
hidden: true, hidden: true,
description: "Quote mode: The next key sequence is ignored by " + config.appName + ", unless in Pass Through mode", description: "Quote mode: The next key sequence is ignored by " + config.appName + ", unless in Pass Through mode",
display: function () modes.getStack(1).main == modes.PASS_THROUGH display: function () modes.getStack(1).main == modes.PASS_THROUGH
? (modes.getStack(2).main.display() || modes.getStack(2).mainMode.name) + " (next)" ? (modes.getStack(2).main.display() || modes.getStack(2).main.name) + " (next)"
: "PASS THROUGH (next)" : "PASS THROUGH (next)"
}, { }, {
// Fix me. // Fix me.

View File

@@ -613,10 +613,10 @@ function call(fn) {
* value of the property. * value of the property.
*/ */
function memoize(obj, key, getter) { function memoize(obj, key, getter) {
obj.__defineGetter__(key, function replace() ( obj.__defineGetter__(key, function g_replaceProperty() (
Class.replaceProperty(this.instance || this, key, null), Class.replaceProperty(this.instance || this, key, null),
Class.replaceProperty(this.instance || this, key, getter.call(this, key)))); Class.replaceProperty(this.instance || this, key, getter.call(this, key))));
obj.__defineSetter__(key, function replace(val) obj.__defineSetter__(key, function s_replaceProperty(val)
Class.replaceProperty(this.instance || this, key, val)); Class.replaceProperty(this.instance || this, key, val));
} }

View File

@@ -209,7 +209,6 @@ var Overlay = Module("Overlay", {
} }
} }
} }
defineModule.modules.map(init);
function load(module, prereq, frame) { function load(module, prereq, frame) {
if (isString(module)) { if (isString(module)) {
@@ -246,6 +245,8 @@ var Overlay = Module("Overlay", {
return modules[module.className]; return modules[module.className];
} }
defineModule.modules.map(init);
Module.list.forEach(load); Module.list.forEach(load);
deferredInit["load"].forEach(call); deferredInit["load"].forEach(call);
modules.times = update({}, defineModule.times); modules.times = update({}, defineModule.times);