mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Simplify global key down emit check
This commit is contained in:
parent
9af8cdcea6
commit
af7d619dc3
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ var KeyboardManager = new Class({
|
|||
|
||||
if (event.type === 'keydown')
|
||||
{
|
||||
if (KeyMap[code] && (keys[code] === undefined || (keys[code] && keys[code].isDown === false)))
|
||||
if (KeyMap[code] && (keys[code] === undefined || keys[code].isDown === false))
|
||||
{
|
||||
// Will emit a keyboard or keyup event
|
||||
this.emit(event.type, event);
|
||||
|
|
Loading…
Reference in a new issue