Skip to content

Commit

Permalink
trigger-key-event: Use instead of Space for keyCode: 32
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed May 24, 2018
1 parent 6921641 commit 57e85d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const keyFromKeyCode = {
18: 'Alt',
20: 'CapsLock',
27: 'Escape',
32: 'Space',
32: ' ',
37: 'ArrowLeft',
38: 'ArrowUp',
39: 'ArrowRight',
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/dom/trigger-key-event-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ module('DOM Helper: triggerKeyEvent', function(hooks) {
await checkKey(18, 'Alt');
await checkKey(20, 'CapsLock');
await checkKey(27, 'Escape');
await checkKey(32, 'Space');
await checkKey(32, ' ');
await checkKey(37, 'ArrowLeft');
await checkKey(38, 'ArrowUp');
await checkKey(39, 'ArrowRight');
Expand Down Expand Up @@ -210,7 +210,7 @@ module('DOM Helper: triggerKeyEvent', function(hooks) {
await checkKeyCode('Alt', 18);
await checkKeyCode('CapsLock', 20);
await checkKeyCode('Escape', 27);
await checkKeyCode('Space', 32);
await checkKeyCode(' ', 32);
await checkKeyCode('ArrowLeft', 37);
await checkKeyCode('ArrowUp', 38);
await checkKeyCode('ArrowRight', 39);
Expand Down

0 comments on commit 57e85d6

Please sign in to comment.