i may be wrong, but it was my understanding that tabbing, enter (the "default" key) and esc (the "cancel" key) only work in dialog boxes and not windows. if you're trying to use these in windows, it won't work (and again i defer to anyone with more knowledge saying otherwise). in a dialog box, tabbing is implemented using by setting the -tabstop option of controls to 1. enter and esc can be worked by setting -default to 1 on a control (for what to trigger on "enter") and -cancel to 1 on a control for what to trigger for "esc". in the documentation there's a -default AND a -ok, and i don't know what the difference is.
as far as accelerators, it was my understanding that this did not currently function at all. anyone with more info or who got this to work? hope this helps. darrik e.g. $txtField=$dlgBox->AddTextfield( -name => "txtField", -size => [ 100, 20 ], -tabstop => 1, # <---- ); $btnOK=$dlgBox->AddButton( -name => "btnOK", -text => "OK", -default => 1, # <---- ); $btnCancel=$dlgBox->AddButton( -name => "btnCancel", -text => "Cancel", -cancel => 1, # <---- );