Pastable version of Setting focus after alert