zerkman / zest

Implementation of an Atari ST in VHDL for Xilinx-based FPGAs
GNU General Public License v3.0
32 stars 3 forks source link

Lockup on zui libray #8

Closed ggnkua closed 1 year ago

ggnkua commented 2 years ago

This troubled me for a long time but I couldn't find the exact cause. Finally I found it: When entering a new form if the user presses shift-tab (or up) then the menu enters an infinite loop when calling prev_focusable().

zui.zip

The attached patch fixes this by making the first focusable item selected on form startup. Not sure if there is a more elegant way to do this but it works at least :)

zerkman commented 1 year ago

(months later) thanks, I guess since that time the fix has been integrated in the master branch.