Added ability to dismiss keyboard in layout view.