From 998de187d3093d97746fbdc16ec898d303d62319 Mon Sep 17 00:00:00 2001 From: Andreas Svensson Date: Wed, 1 Jan 2014 15:27:19 +0100 Subject: [PATCH] Add "getModifierState" to the MouseEvent interface. --- src/event/synthetic/SyntheticMouseEvent.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/event/synthetic/SyntheticMouseEvent.js b/src/event/synthetic/SyntheticMouseEvent.js index 1e894ae9383..8eb1f49a81f 100644 --- a/src/event/synthetic/SyntheticMouseEvent.js +++ b/src/event/synthetic/SyntheticMouseEvent.js @@ -35,6 +35,10 @@ var MouseEventInterface = { shiftKey: null, altKey: null, metaKey: null, + // IE8 does not implement getModifierState, we could polyfill it for modifier + // keys exposed by the event itself, however since they are already exposed + // and there is no way to polyfill Lock-keys, this would only hide the truth. + getModifierState: null, button: function(event) { // Webkit, Firefox, IE9+ // which: 1 2 3