Skip Menu |

This queue is for tickets about the Tickit CPAN distribution.

Report information
The Basics
Id: 88956
Status: resolved
Priority: 0/
Queue: Tickit

People
Owner: Nobody in particular
Requestors: TEAM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.39
Fixed in: 0.44



Subject: Focus notification
For some cases - container widgets, for example - it'd be very useful to have (recursive) focus notification when any of the child windows receives focus. At the moment, overriding ->focus_next gets part of the way there but I haven't found a way to cover ->take_focus or mouse click, other than dirty hacks such as subclassing Tickit::Window (https://metacpan.org/source/TEAM/Tickit-Widget-Layout-Relative-0.003/lib/Tickit/Widget/Layout/Relative.pm#L392 for example). Either something in the ContainerWidget interface or a way to add focus callback hooks to the child windows that we hand out via ->make_sub would be great. cheers, Tom
On Wed Sep 25 03:28:18 2013, TEAM wrote: Show quoted text
> For some cases - container widgets, for example - it'd be very useful > to have (recursive) focus notification when any of the child windows > receives focus. At the moment, overriding ->focus_next gets part of > the way there but I haven't found a way to cover ->take_focus or mouse > click, other than dirty hacks such as subclassing Tickit::Window > (https://metacpan.org/source/TEAM/Tickit-Widget-Layout-Relative- > 0.003/lib/Tickit/Widget/Layout/Relative.pm#L392 for example). > > Either something in the ContainerWidget interface or a way to add > focus callback hooks to the child windows that we hand out via > ->make_sub would be great. > > cheers, > > Tom
I believe this feature is now nicely provided by $win->set_focus_child_notify( 1 ) added right back in 0.44. -- Paul Evans