Hi,

I have seen that the multiline Textfield doesn't lose the focus when the tab
or shift+tab key are pressed, and I want to trap these keys in order to pass
the focus to other controls.

I have tried using:

$Win->AddTextfield(
#...
-onChar => \&tab,
);

sub tab {
my ($self, $k1, $k2) = @_;

if ($k2 == 9) {
#Do some things
}
}

Well, I don't know what $k1 represents, but both $k1 and $k2 are the same,
doesn't matter if I press the tab key only or shift+tab, and I don't know
how to detect when tab was pressed and when shift+tab.

Is it possible?

Thank you.

Teddy


Reply via email to