Hi All,
I have a Tk Dialog Box that looks something like this:
my $Dialog = $mw->DialogBox(
-title=>"Add Comments",
-buttons=>["OK","Cancel"]
);
$Dialog->add('Label',
-text=>"Comments:"
)->pack(-side=>"top",-anchor=>"w");
$Dialog->add('Text',
-width=>30,
-height=>10
)->pack(-side=>"top",-anchor=>"w");
My problem is that if someone wants to enter in their comments and they hit 'enter' while typing in the text box, the dialog box captures that as an event and automatically pushes its default button, which closes the dialog. This is quit annoying, is there anyway to unbind "<Return>" from the dialog box? The documentation says "DialogBox" only supports a "Show" and an "add" method.