Add selectAllText method and auto select all when becoming first responder.