From 7687013c77be726198539a8b41f429c201485123 Mon Sep 17 00:00:00 2001 From: Erik Arvidsson Date: Fri, 10 Jan 2014 15:12:25 -0500 Subject: [PATCH] Blacklist keyLocation from all Events --- src/wrappers/events.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wrappers/events.js b/src/wrappers/events.js index ea967af..268b2c8 100644 --- a/src/wrappers/events.js +++ b/src/wrappers/events.js @@ -360,7 +360,12 @@ }; var OriginalEvent = window.Event; - OriginalEvent.prototype.polymerBlackList_ = {returnValue: true}; + OriginalEvent.prototype.polymerBlackList_ = { + returnValue: true, + // TODO(arv): keyLocation is part of KeyboardEvent but Firefox does not + // support constructable KeyboardEvent so we keep it here for now. + keyLocation: true + }; /** * Creates a new Event wrapper or wraps an existin native Event object.