vlang / ui

A cross-platform UI library written in V
MIT License
2.32k stars 154 forks source link

on_key_up #439

Open premek opened 2 years ago

premek commented 2 years ago

I cannot seem to find an on_key_up, on_key_release or some equivalent

on_key_down triggers when key is pressed down, and then repeatedly when the key is being held.

How to detect if a key was released? Or how to query if a given key is pressed or not at the given time?

xandro0777 commented 2 years ago

Last I looked key and other events were propagated using window.eventbus.publish. I don't think this was intended as an official interface but have a look at it