grkek / iu

UI framework based on the Fusion/libui.cr library, with elements from watzon/cru.
MIT License
71 stars 5 forks source link

fix type restriction on Area#on_key_event #5

Closed videotoaster closed 9 months ago

videotoaster commented 10 months ago

The on_key_event function is restricted to Int32 in the base Area class. However, the Area class itself makes an attempt to cast that Int32 to nil, which is impossible, causing a compilation failure. This PR simply removes the type restriction on on_key_event, as that seems to have completely fixed the problem in my local copy.