onKeyPressRepeat(k: Key | Key[], action: (k: Key)=>void): KEventController

Register an event that runs when user presses certain kesy (also fires repeatedly when the keys are being held down).
// delete last character when "backspace" is being pressed and held
onKeyPressRepeat("backspace", () => {
    input.text = input.text.substring(0, input.text.length - 1)
})

sincev3000.1

kaplay logo

3001.0.0-alpha.18

Misc