Integrated tap-on-view-to-dismiss-keyboard in existing tappedOnView handler.