Added a delegate method when input view begin editing.