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();
}
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp