Don't reset focus flag yet on non-GTK platforms. It's required.
Fixes https://gitlab.com/kicad/code/kicad/issues/7671
This commit is contained in:
parent
154d56b4f4
commit
b48071015b
|
@ -201,11 +201,14 @@ void GRID_CELL_LAYER_SELECTOR::Reset()
|
|||
|
||||
void GRID_CELL_LAYER_SELECTOR::onComboDropDown( wxCommandEvent& aEvent )
|
||||
{
|
||||
// On other platforms this is done in BeginEdit()
|
||||
#if defined(__WXGTK20__)
|
||||
auto evtHandler = static_cast<wxGridCellEditorEvtHandler*>( m_control->GetEventHandler() );
|
||||
|
||||
// Once the combobox is dropped, reset the flag to allow the focus-loss handler
|
||||
// to function and close the editor.
|
||||
evtHandler->SetInSetFocus( false );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue