Subject: | -releasefocus behavior in Curses::UI::Container |
Hi,
Though this is a bug report, let me first say how great I find Curses::UI !
Now for the nitty-gritty,
- Curses::UI v 0.92, 0.93
- perl v 5.8.3
- uname Linux 2.4.22 i686 unknown
When using a Container with "-releasefocus" set, the following two (related) problems can be observed :
- tabbing over the last _enabled_ component will not result in leaving the container if that component is followed by a non focusable component in the focusorder. This is due to the logic in focus_next that relies solely on the current component's position with respect to focusorder, ie it would maybe be necessary to replace the ++$idx logic with a loop awaiting the first focusable component (with full loop detection).
- same problem (inverted) when using focus_previous
Cheers,
- William Barsse