Commit 0191ee9a authored by Yury Khalyavin's avatar Yury Khalyavin Committed by Wayne Stambaugh
Browse files

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

parent 17aa17fb
Loading
Loading
Loading
Loading
+98 −95
Original line number Diff line number Diff line
@@ -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();
}