Sleitnick / rbxts-clack

User input helper classes
https://www.npmjs.com/package/@rbxts/clack
MIT License
1 stars 1 forks source link

`keyboard.isKeyDown()` doesn't take into account processed events. #2

Closed Sleitnick closed 2 years ago

Sleitnick commented 2 years ago

isKeyDown() utilizes RunService's IsKeyDown() method, which doesn't take into account processed keys. In other words, if a key was used in a TextBox (e.g. chat), then this method would still return true while those keys are being typed.

Ideally, isKeyDown() should only return true for keys that have been pressed and not processed.