close if input is not focus

Signed-off-by: Alexandr <yakovlev@primepix.ru>