Simplify focus/blur handling

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>