Skip to content

Commit

Permalink
Merge pull request #47 from uwolfer/init-keyevent-detail-field
Browse files Browse the repository at this point in the history
Initialize property 'detail' for mocked keyboard events
  • Loading branch information
samuelli committed Apr 26, 2016
2 parents 070e343 + ab68758 commit 6198e67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mock-interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@
*/
function keyboardEventFor(type, keyCode, modifiers, key) {
var event = new CustomEvent(type, {
detail: 0,
bubbles: true,
cancelable: true
});
Expand Down

0 comments on commit 6198e67

Please sign in to comment.