diff options
Diffstat (limited to 'Master/tlpkg/tlperl.straw/lib/auto/Tk/focusPrev.al')
-rwxr-xr-x | Master/tlpkg/tlperl.straw/lib/auto/Tk/focusPrev.al | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl.straw/lib/auto/Tk/focusPrev.al b/Master/tlpkg/tlperl.straw/lib/auto/Tk/focusPrev.al new file mode 100755 index 00000000000..effc8f75110 --- /dev/null +++ b/Master/tlpkg/tlperl.straw/lib/auto/Tk/focusPrev.al @@ -0,0 +1,28 @@ +# NOTE: Derived from blib\lib\Tk.pm. +# Changes made here will be lost when autosplit is run again. +# See AutoSplit.pm. +package Tk; + +#line 597 "blib\lib\Tk.pm (autosplit into blib\lib\auto\Tk\focusPrev.al)" +# focusPrev -- +# This procedure is invoked to move the input focus to the previous +# window before a given one. "Previous" is defined in terms of the +# window stacking order, with all the windows underneath a given +# top-level (no matter how deeply nested in the hierarchy) considered. +# +# Arguments: +# w - Name of a window: the procedure will set the focus +# to the previous window before this one in the traversal +# order. +sub focusPrev +{ + my $w = shift; + my $cur = $w->getPrevFocus; + if ($cur) + { + $cur->tabFocus; + } +} + +# end of Tk::focusPrev +1; |