fix wrong focusout-event

suggested fix for issue #917