Solve chat view controller keyboard problem.