Added hook on paste event to search for the pasted input.