Issue/2542 fixes keyboard dismiss recognizer

Fixes #2542

Should probably use `YES`?