Comment 7 for bug 1793911

Revision history for this message
Thomas Pointhuber (pointhi) wrote :

I fixed the bug locally by changing the following line in UNIT_BINDER::onKillFocus( wxFocusEvent& aEvent ):

```
if( !aEvent.GetWindow() || aEvent.GetWindow()->GetId() == wxID_CANCEL )
```

to

```
if( aEvent.GetWindow() && aEvent.GetWindow()->GetId() == wxID_CANCEL )
```

This fixed the evaluation in general, but a regression was visible: entering a value and then pressing Enter skipped the evaluation. A user had to explicitly press OK with the Mouse or set focus to another object.