kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #05028
Close "Edit Item Dialog" by ESC in Library Editor -- patch
Good day.
This patch allow to close Edit Item dialog in wxGTK by pressing ESC
button.
Regards,
--
Yury Khalyavin
=== modified file eeschema/dialog_lib_edit_draw_item.cpp
--- eeschema/dialog_lib_edit_draw_item.cpp 2009-10-20 19:36:58 +0000
+++ eeschema/dialog_lib_edit_draw_item.cpp 2010-07-22 07:25:59 +0000
@@ -6,6 +6,9 @@
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();
}
Follow ups