Fixed keyboard dismissal and bar buttons enabling.