mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 17:28:18 +00:00
The Key.reset
method no longer resets the Key.enabled
or Key.preventDefault
booleans back to true
again, but only resets the state of the Key. Fix #6098
This commit is contained in:
parent
0545373587
commit
6d9aceb727
1 changed files with 2 additions and 2 deletions
|
@ -325,6 +325,8 @@ var Key = new Class({
|
|||
/**
|
||||
* Resets this Key object back to its default un-pressed state.
|
||||
*
|
||||
* As of version 3.60.0 it no longer resets the `enabled` or `preventDefault` flags.
|
||||
*
|
||||
* @method Phaser.Input.Keyboard.Key#reset
|
||||
* @since 3.6.0
|
||||
*
|
||||
|
@ -332,8 +334,6 @@ var Key = new Class({
|
|||
*/
|
||||
reset: function ()
|
||||
{
|
||||
this.preventDefault = true;
|
||||
this.enabled = true;
|
||||
this.isDown = false;
|
||||
this.isUp = true;
|
||||
this.altKey = false;
|
||||
|
|
Loading…
Reference in a new issue