Check input.type before focusing