blob: 9dfaffe9d2ef8c52ced0e042b80c78a5759146de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# NOTE: Derived from blib\lib\Tk\Toplevel.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Tk::Toplevel;
#line 188 "blib\lib\Tk\Toplevel.pm (autosplit into blib\lib\auto\Tk\Toplevel\FG_Out.al)"
# tkFocusGroup_Out --
#
# Handles the <FocusOut> event. Checks if this is really a lose
# focus event, not one generated by the mouse moving out of the
# toplevel window. Calls the FocusOut command for the widget
# who loses its focus.
#
sub FG_Out {
my($t, $w, $detail) = @_;
if ($detail ne 'NotifyNonlinear' and $detail ne 'NotifyNonlinearVirtual') {
# This is caused by mouse moving out of the window
return;
}
unless (exists $t->{'_FocusOut'}{$w}) {
return;
} else {
$t->{'_FocusOut'}{$w}->Call;
delete $t->{'_focus'};
}
}
1;
__END__
1;
# end of Tk::Toplevel::FG_Out
|