From 821b8b65ec1f4e9c09627406972fa74904cbb84e Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Tue, 15 Feb 2011 09:50:25 -0500 Subject: [PATCH] Fixes escape key doesn't dismiss select component dialog in EESchema bug. --- common/dialogs/dialog_get_component.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/dialogs/dialog_get_component.cpp b/common/dialogs/dialog_get_component.cpp index 66f4fabda1..8025a4d59c 100644 --- a/common/dialogs/dialog_get_component.cpp +++ b/common/dialogs/dialog_get_component.cpp @@ -37,6 +37,7 @@ DIALOG_GET_COMPONENT::DIALOG_GET_COMPONENT( EDA_DRAW_FRAME* parent, #endif initDialog( HistoryList ); + m_textCmpNameCtrl->SetFocus(); GetSizer()->Fit( this ); GetSizer()->SetSizeHints( this ); }