urs-of-the-backwoods / HGamer3D

A tool to use Haskell for game programming.
Other
42 stars 4 forks source link

GUI events #22

Open tril0byte opened 5 years ago

tril0byte commented 5 years ago

Could there be a way to detect when a GUI EditText element has been activated? I am looking for a way to stop handling key input in other areas of my program while the text is being edited, so they key is not sent to two places at once. To implement key focus, I request a feature for an event that notifies me when the editText has a cursor in it.

More than this (possibly needs a separate issue made), if I place a Button somewhere, and click it, I would like to be able to detect whether the click was sent to the Button, since my left button should ONLY click the button in that case, and not trigger other actions like dragging the background.

tril0byte commented 5 years ago

here is what I suggest