How capture "shift" key?

I have a problem with capturing some keys. For excample, key “Space” is captured sucsessfull , but key “Shift” is not . When I press “shift” many times in game , window gives a prompt asking you if you want to enable sticky keys.

I use this code :

  this.input.keyboard.addCapture(Phaser.Input.Keyboard.KeyCodes.SHIFT); 

    keySHIFT = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.SHIFT);

Sticky keys are a Windows accessibility feature. I’m not sure whether any application could bypass the prompt, let alone a webpage. You can disable sticky keys from your computer’s settings.

1 Like