made condition to ignore unfocused events.