forked from mia/Aegisub
Only generate fake focus lost events when using the generic implementation
This commit is contained in:
parent
a4dd4f6986
commit
96d7912d0b
1 changed files with 2 additions and 0 deletions
|
@ -292,8 +292,10 @@ namespace Automation4 {
|
|||
|
||||
bool TransferFromWindow() {
|
||||
auto ctrl = static_cast<wxSpinCtrlDouble*>(GetWindow());
|
||||
#ifndef wxHAS_NATIVE_SPINCTRLDOUBLE
|
||||
wxFocusEvent evt;
|
||||
ctrl->OnTextLostFocus(evt);
|
||||
#endif
|
||||
*value = ctrl->GetValue();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue