Browse Source

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

pull/1/head
Yury Khalyavin 16 years ago
committed by Wayne Stambaugh
parent
commit
0191ee9a6e
  1. 3
      eeschema/dialog_lib_edit_draw_item.cpp

3
eeschema/dialog_lib_edit_draw_item.cpp

@ -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…
Cancel
Save