Open jedStevens opened 8 years ago
Pushed new version - app.keyboard.any
should be there
There is a problem if you press keys, then switch tab or window - I will fix that later.
I did a little digging myself as I found that sometimes playground.js reported that -1 buttons were being pressed, so I added a small fix that catches the bottom limit. At line 2300 I changed this.any--;
to this.any = this.any - 1 < 0 ? 0 : this.any--;
and the -1 problem is no more.
I will add it as a temporary fix, but we should really find when it happens :)
I am only aware of -1 problem when you press a key being in application - but release it in another window.
I posted on the website about a symbol for any keypress, as I believe it may be useful to have access to. Possibly something like
app.keyboard.any