Skip to content

Commit e224faa

Browse files
committed
Added space and shift to createCursors method
1 parent 39d1f64 commit e224faa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

v3/src/input/keyboard/KeyboardManager.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,17 @@ var KeyboardManager = new Class({
9393
},
9494

9595
/**
96-
* Creates and returns an object containing 4 hotkeys for Up, Down, Left and Right.
96+
* Creates and returns an object containing 4 hotkeys for Up, Down, Left and Right and also space and shift.
9797
*/
9898
createCursorKeys: function ()
9999
{
100100
return this.addKeys({
101101
up: KeyCodes.UP,
102102
down: KeyCodes.DOWN,
103103
left: KeyCodes.LEFT,
104-
right: KeyCodes.RIGHT
104+
right: KeyCodes.RIGHT,
105+
space: KeyCodes.SPACE,
106+
shift: KeyCodes.SHIFT
105107
});
106108
},
107109

0 commit comments

Comments
 (0)