Issue/2542 fixes keyboard dismiss recognizer

Fixes #2542