Open wdudek82 opened 5 years ago
My current solution to disable auto-repeat on keypress is to create list containing all pressed keys that have not triggered onKeyUp event. If keyDown event is triggered by a key included in that list, nothing happens. Keyup removes such a key form this list, and it can again trigger keydown/keypress event.
Currently user is able to keep key pressed, causing repeated input. This should be blocked. Only Shift, Ctlr, Alt, Space, and CapsLock should remain non-blocking.