From: <sv...@op...> - 2024-10-26 19:25:03
|
Author: sagamusix Date: Sat Oct 26 21:24:50 2024 New Revision: 21992 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21992 Log: [Mod] OPL Export: When starting conversion, put focus on Cancel button, so that keyboard focus keeps working. Modified: trunk/OpenMPT/mptrack/OPLExport.cpp Modified: trunk/OpenMPT/mptrack/OPLExport.cpp ============================================================================== --- trunk/OpenMPT/mptrack/OPLExport.cpp Sat Oct 26 20:36:36 2024 (r21991) +++ trunk/OpenMPT/mptrack/OPLExport.cpp Sat Oct 26 21:24:50 2024 (r21992) @@ -472,6 +472,7 @@ const int controls[] = {IDC_RADIO1, IDC_RADIO2, IDC_RADIO3, IDC_RADIO4, IDC_RADIO5, IDC_EDIT1, IDC_EDIT2, IDC_EDIT3, IDC_EDIT4, IDC_EDIT5, IDC_SPIN1, IDOK}; for(int control : controls) GetDlgItem(control)->EnableWindow(FALSE); + GetDlgItem(IDCANCEL)->SetFocus(); BypassInputHandler bih; CMainFrame::GetMainFrame()->StopMod(&m_modDoc); |