Open combobox from code

After a long fuss with inheriting UComboBoxString and SComboRow, I settled on the simple solution of setting focus to the ComboBox and simulating a button press:

FKeyEvent SimulatedKey(EKeys::Virtual_Accept, FModifierKeysState(), 0, false, 0, 0);
FSlateApplication::Get().ProcessKeyDownEvent(SimulatedKey);
1 Like