From c384bffadc9053c374c0c74eb48c2bc6ea110597 Mon Sep 17 00:00:00 2001 From: Eugene Fidelin Date: Mon, 28 Nov 2016 15:32:31 +0100 Subject: [PATCH] Populate event.which for keyboard events Major browsers (CHrome, FF, Safari, IE and Edge) have event.which for keyboard events whic is equal to event.keyCode. For better compatibility this should be done in mock. --- mock-interactions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mock-interactions.js b/mock-interactions.js index a4ad984..4adebce 100644 --- a/mock-interactions.js +++ b/mock-interactions.js @@ -350,6 +350,7 @@ event.keyCode = keyCode; event.code = keyCode; + event.which = keyCode; modifiers = modifiers || []; if (typeof modifiers === 'string') {