mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Fixed keyboard issue.
This commit is contained in:
parent
28c1a26780
commit
57642afc24
1 changed files with 3 additions and 3 deletions
|
@ -382,7 +382,7 @@ Phaser.Keyboard.prototype = {
|
|||
}
|
||||
else if (event.keyCode !== undefined)
|
||||
{
|
||||
return event.keyCode;
|
||||
return event.keyCode;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -407,7 +407,7 @@ Phaser.Keyboard.prototype = {
|
|||
return;
|
||||
}
|
||||
|
||||
var key = this.getKeyCode();
|
||||
var key = this.getKeyCode(event);
|
||||
|
||||
// The event is being captured but another hotkey may need it
|
||||
if (this._capture[key])
|
||||
|
@ -470,7 +470,7 @@ Phaser.Keyboard.prototype = {
|
|||
return;
|
||||
}
|
||||
|
||||
var key = this.getKeyCode();
|
||||
var key = this.getKeyCode(event);
|
||||
|
||||
if (this._capture[key])
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue