Fix #2342 (closed)
.focusout wasn't triggered when pressing 'enter', but needed to put old_event back