Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #170 from ckeditor/t/169
Browse files Browse the repository at this point in the history
Feature: Added support for `'space'` key code in the `parseKeystroke()` helper. Closes #169.
  • Loading branch information
Reinmar authored Jul 5, 2017
2 parents b0f691e + d341e9d commit f86b1ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function generateKnownKeyCodes() {
backspace: 8,
delete: 46,
enter: 13,
space: 32,
esc: 27,
tab: 9,

Expand Down
2 changes: 1 addition & 1 deletion tests/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe( 'Keyboard', () => {
expect( keyCodes ).to.include.keys(
'ctrl', 'cmd', 'shift', 'alt',
'arrowleft', 'arrowup', 'arrowright', 'arrowdown',
'backspace', 'delete', 'enter', 'esc', 'tab',
'backspace', 'delete', 'enter', 'space', 'esc', 'tab',
'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'f10', 'f11', 'f12'
);
} );
Expand Down

0 comments on commit f86b1ad

Please sign in to comment.