Use a different delegate function to prevent accidental keyboard collapses