ironkayman / tftm-alien-invasion

Bullet hell shoot-em-up
GNU General Public License v3.0
0 stars 0 forks source link

Main menu: When no UIButton focus present Enter key crashes app #21

Closed ironkayman closed 1 year ago

ironkayman commented 1 year ago

Currently this's fixed by overriding processed/captured events by the EventDispatcher parent class, and then inheriting from it:

https://github.com/ironkayman/tftm-alien-invasion/blob/49ebc48ccbfe9d9e580b31111b1cadc9ab4548eb/alien_invasion/views/main_menu/sections/interface.py#L219

Yet consider moving this logic somewhere in a shared module since these button shall be reused for other than the main menu scenes.