pcbnew: Exit Yes/No with escape key

Fixes: lp:1814957
* https://bugs.launchpad.net/kicad/+bug/1814957
This commit is contained in:
Seth Hillbrand 2019-02-07 06:41:58 -08:00
parent 6bb8fde48a
commit 591e4137d7
1 changed files with 1 additions and 0 deletions

View File

@ -295,6 +295,7 @@ bool IsOK( wxWindow* aParent, const wxString& aMessage )
{
wxMessageDialog dlg( aParent, aMessage, _( "Confirmation" ),
wxYES_NO | wxCENTRE | wxICON_QUESTION | wxSTAY_ON_TOP );
dlg.SetEscapeId( wxID_NO );
return dlg.ShowModal() == wxID_YES;
}