Skip to content

Commit 57642af

Browse files
committed
Fixed keyboard issue.
1 parent 28c1a26 commit 57642af

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/input/Keyboard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ Phaser.Keyboard.prototype = {
382382
}
383383
else if (event.keyCode !== undefined)
384384
{
385-
return event.keyCode;
385+
return event.keyCode;
386386
}
387387
else
388388
{
@@ -407,7 +407,7 @@ Phaser.Keyboard.prototype = {
407407
return;
408408
}
409409

410-
var key = this.getKeyCode();
410+
var key = this.getKeyCode(event);
411411

412412
// The event is being captured but another hotkey may need it
413413
if (this._capture[key])
@@ -470,7 +470,7 @@ Phaser.Keyboard.prototype = {
470470
return;
471471
}
472472

473-
var key = this.getKeyCode();
473+
var key = this.getKeyCode(event);
474474

475475
if (this._capture[key])
476476
{

0 commit comments

Comments
 (0)