Skip to content

Commit 8d94b4a

Browse files
committed
Swapped keypress callback order.
1 parent 9c35dfd commit 8d94b4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/input/Keyboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ Phaser.Keyboard.prototype = {
377377

378378
if (this.onPressCallback)
379379
{
380-
this.onPressCallback.call(this.callbackContext, event, String.fromCharCode(event.charCode));
380+
this.onPressCallback.call(this.callbackContext, String.fromCharCode(event.charCode), event);
381381
}
382382

383383
},

0 commit comments

Comments
 (0)