Set focus in library edit item dialog so escape key closes dialog in wxGTK.

This commit is contained in:
Yury Khalyavin 2010-07-22 16:12:40 -04:00 committed by Wayne Stambaugh
parent 17aa17fb70
commit 0191ee9a6e
1 changed files with 98 additions and 95 deletions

View File

@ -6,6 +6,9 @@ DIALOG_LIB_EDIT_DRAW_ITEM::DIALOG_LIB_EDIT_DRAW_ITEM( wxWindow* parent,
DIALOG_LIB_EDIT_DRAW_ITEM_BASE( parent )
{
SetTitle( itemName + wxT( " " ) + GetTitle() );
// Required under wxGTK if we want to demiss the dialog with the ESC key
SetFocus();
}