File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,11 +308,11 @@ Phaser.Game.prototype = {
308308
309309 if ( this . renderType == Phaser . CANVAS )
310310 {
311- console . log ( '%cPhaser ' + Phaser . VERSION + ' initialized. Rendering to Canvas', 'color: #ffff33; background: #000000' ) ;
311+ console . log ( '%cPhaser initialized. Rendering to Canvas. ' , 'color: #ffff33; background: #000000' ) ;
312312 }
313313 else
314314 {
315- console . log ( '%cPhaser ' + Phaser . VERSION + ' initialized. Rendering to WebGL', 'color: #ffff33; background: #000000' ) ;
315+ console . log ( '%cPhaser initialized. Rendering to WebGL. ' , 'color: #ffff33; background: #000000' ) ;
316316 }
317317
318318 var pos = Phaser . VERSION . indexOf ( '-' ) ;
Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ Phaser.Keyboard.prototype = {
107107 addKey : function ( keycode ) {
108108
109109 this . _hotkeys [ keycode ] = new Phaser . Key ( this . game , keycode ) ;
110+
111+ this . addKeyCapture ( keycode ) ;
112+
110113 return this . _hotkeys [ keycode ] ;
111114
112115 } ,
You can’t perform that action at this time.
0 commit comments