mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 21:53:33 +02:00
Closes issue 349.
This commit is contained in:
@@ -998,6 +998,7 @@ var CommandLine = Module("commandline", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
cleanup: function () {
|
cleanup: function () {
|
||||||
|
dactyl.unregisterObserver("events.doneFeeding", this.closure.onDoneFeeding);
|
||||||
this.previewClear();
|
this.previewClear();
|
||||||
this.tabTimer.reset();
|
this.tabTimer.reset();
|
||||||
this.autocompleteTimer.reset();
|
this.autocompleteTimer.reset();
|
||||||
|
|||||||
@@ -599,7 +599,7 @@ var Events = Module("events", {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const TYPES = {
|
const TYPES = {
|
||||||
change: "", input: "",
|
change: "", input: "", submit: "",
|
||||||
click: "Mouse", mousedown: "Mouse", mouseup: "Mouse",
|
click: "Mouse", mousedown: "Mouse", mouseup: "Mouse",
|
||||||
mouseover: "Mouse", mouseout: "Mouse",
|
mouseover: "Mouse", mouseout: "Mouse",
|
||||||
keypress: "Key", keyup: "Key", keydown: "Key"
|
keypress: "Key", keyup: "Key", keydown: "Key"
|
||||||
@@ -659,11 +659,13 @@ var Events = Module("events", {
|
|||||||
this.feedingEvent = extra;
|
this.feedingEvent = extra;
|
||||||
if (target instanceof Element)
|
if (target instanceof Element)
|
||||||
// This causes a crash on Gecko<2.0, it seems.
|
// This causes a crash on Gecko<2.0, it seems.
|
||||||
(target.ownerDocument || target.document || target).defaultView
|
return (target.ownerDocument || target.document || target).defaultView
|
||||||
.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils)
|
.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils)
|
||||||
.dispatchDOMEventViaPresShell(target, event, true);
|
.dispatchDOMEventViaPresShell(target, event, true);
|
||||||
else
|
else {
|
||||||
target.dispatchEvent(event);
|
target.dispatchEvent(event);
|
||||||
|
return !event.getPreventDefault();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
util.reportError(e);
|
util.reportError(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user