Skip to content

Commit

Permalink
Add spacebar key mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Feb 16, 2014
1 parent ce88c05 commit 2d3b27d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/event/js/key.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var ALT = "+alt",
eventDef = {
KEY_MAP: {
enter : 13,
space : 32,
esc : 27,
backspace: 8,
tab : 9,
Expand Down Expand Up @@ -143,7 +144,7 @@ eventDef.detachDelegate = eventDef.detach;
* <dt>modifier</dt>
* <dd><code>"shift", "ctrl", "alt", or "meta"</code></dd>
* <dt>keyName</dt>
* <dd><code>"enter", "backspace", "esc", "tab", "pageup", or "pagedown"</code></dd>
* <dd><code>"enter", "space", "backspace", "esc", "tab", "pageup", or "pagedown"</code></dd>
* </dl>
*
* <p>Examples:</p>
Expand Down
1 change: 1 addition & 0 deletions src/event/tests/unit/assets/event-key-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ suite.add(new Y.Test.Case({
count = 0,
map = {
enter : 13,
space : 32,
esc : 27,
backspace: 8,
tab : 9,
Expand Down

0 comments on commit 2d3b27d

Please sign in to comment.