Issue/2542 fixes keyboard dismiss recognizer

Fixes #2542

Updating, thank you!