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:
@@ -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];
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user