0

[JAVASCRIPT] is there any way to bypass windows filter keys?

I'm making a web game using Javascript, and a problem I've come across is that a feature in windows called filter keys will delay key's repeated input (for an onkeypress event listener) after a period of time when the user first starts holding down a key. There are of course ways to disable this in windows settings, but I don't want to prompt users (unless I absolutely have too) to disable it manually. I'm assuming the problem comes from how JS listens for the system OS to send a response. I'm still pretty new to JS, but I'm wondering if it has a capability to bypass that, and instead get the direct input from the keyboard and read those inputs instead? Or are my assumptions wrong, and/or is there another/no way? Any help would be appreciated. Thanks :)

19th Sep 2018, 10:42 PM
Derek Brouwer
Derek Brouwer - avatar
3 Answers
+ 1
This is client's side decision, from OS. Javascript cannot change it. Read more: https://stackoverflow.com/questions/12273451/how-to-fix-delay-in-javascript-keydown
20th Sep 2018, 12:18 PM
Alexander Santos
Alexander Santos - avatar
+ 1
You are welcome, mate!
20th Sep 2018, 6:27 PM
Alexander Santos
Alexander Santos - avatar
0
Oh, I see! Thank you very much for the link! I now at least have a work around for my problem. :D
20th Sep 2018, 6:22 PM
Derek Brouwer
Derek Brouwer - avatar