mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 06:08:02 +01:00
Fix feedkey mappings on FF36.
This commit is contained in:
@@ -426,7 +426,7 @@ var Events = Module("events", {
|
||||
this.feedingEvent = null;
|
||||
}
|
||||
}
|
||||
: function (target, event, extra) target.dispatchEvent(update(event, extra || {}))),
|
||||
: function (target, event, extra) target.dispatchEvent(event)),
|
||||
|
||||
get defaultTarget() dactyl.focusedElement || content.document.body || document.documentElement,
|
||||
|
||||
@@ -869,7 +869,9 @@ var Events = Module("events", {
|
||||
}
|
||||
|
||||
if (this.feedingEvent && [!(k in event) || event[k] === v for ([k, v] in Iterator(this.feedingEvent))].every(util.identity)) {
|
||||
update(event, this.feedingEvent);
|
||||
for (let [k, v] in Iterator(this.feedingEvent))
|
||||
if (!(k in event))
|
||||
event[k] = v;
|
||||
this.feedingEvent = null;
|
||||
}
|
||||
|
||||
@@ -987,7 +989,7 @@ var Events = Module("events", {
|
||||
res = dactyl.trapErrors(input.fallthrough, input, event);
|
||||
}
|
||||
|
||||
if (!keyModes.some(function (m) m.ownsBuffer))
|
||||
if (!processors.some(function (p) p.main.ownsBuffer))
|
||||
statusline.updateInputBuffer(buffer);
|
||||
|
||||
if (waiting)
|
||||
|
||||
@@ -830,7 +830,7 @@ var Hints = Module("hints", {
|
||||
context.compare = function () 0;
|
||||
context.completions = [[k, v.prompt] for ([k, v] in Iterator(hints._hintModes))];
|
||||
},
|
||||
onAccept: function (arg) { arg && util.timeout(function () hints.show(arg, opts), 0); },
|
||||
onAccept: function (arg) { arg && util.timeout(function () dactyl.trapErrors(hints.show, hints, arg, opts), 0); },
|
||||
get onCancel() this.onAccept,
|
||||
onChange: function () { modes.pop(); }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user