From 5606714952dd5b6fedfd05d8dc1de3b7a3a015fb Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Thu, 25 Aug 2022 20:25:23 +0100 Subject: [PATCH] DIALOG_PASTE_SPECIAL: Set focus on OK button Fixes https://gitlab.com/kicad/code/kicad/-/issues/12285 (cherry picked from commit 8a02f2f809f2bedd806ee427ce32373c2b608dce) --- common/dialogs/dialog_paste_special.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/dialogs/dialog_paste_special.cpp b/common/dialogs/dialog_paste_special.cpp index 37079051a0..aba021878a 100644 --- a/common/dialogs/dialog_paste_special.cpp +++ b/common/dialogs/dialog_paste_special.cpp @@ -45,6 +45,8 @@ DIALOG_PASTE_SPECIAL::DIALOG_PASTE_SPECIAL( wxWindow* aParent, "with '%s'." ), aReplacement ) ); + m_sdbSizerOK->SetFocus(); + // Now all widgets have the size fixed, call FinishDialogSettings finishDialogSettings(); }