Set focus in library edit item dialog so escape key closes dialog in wxGTK.
This commit is contained in:
parent
17aa17fb70
commit
0191ee9a6e
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue