Close keyboard on preview; func