pcbnew: Exit Yes/No with escape key
Fixes: lp:1814957 * https://bugs.launchpad.net/kicad/+bug/1814957
This commit is contained in:
parent
6bb8fde48a
commit
591e4137d7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue