mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-23 03:23:31 +01:00
Fix absurd security manager errors.
This commit is contained in:
@@ -1011,8 +1011,7 @@ var Events = Module("events", {
|
||||
*/
|
||||
|
||||
input: function onInput(event) {
|
||||
if ("dactylKeyPress" in event.originalTarget)
|
||||
delete event.originalTarget.dactylKeyPress;
|
||||
event.originalTarget.dactylKeyPress = undefined;
|
||||
},
|
||||
|
||||
// this keypress handler gets always called first, even if e.g.
|
||||
@@ -1027,7 +1026,7 @@ var Events = Module("events", {
|
||||
let elem = event.originalTarget;
|
||||
elem.dactylKeyPress = elem.value;
|
||||
util.timeout(function () {
|
||||
if ("dactylKeyPress" in elem && elem.value !== elem.dactylKeyPress)
|
||||
if (elem.value !== elem.dactylKeyPress)
|
||||
events.dispatch(elem, events.create(elem.ownerDocument, "input"));
|
||||
delete events.dactylKeyPress;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user