Skip to content

Commit af7d619

Browse files
dominicdominic
authored andcommitted
Simplify global key down emit check
1 parent 9af8cdc commit af7d619

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/input/keyboard/KeyboardManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ var KeyboardManager = new Class({
364364

365365
if (event.type === 'keydown')
366366
{
367-
if (KeyMap[code] && (keys[code] === undefined || (keys[code] && keys[code].isDown === false)))
367+
if (KeyMap[code] && (keys[code] === undefined || keys[code].isDown === false))
368368
{
369369
// Will emit a keyboard or keyup event
370370
this.emit(event.type, event);

0 commit comments

Comments
 (0)