adds a focus attribute to the input