Dismiss keyboard on swiping in the Bookmark and Setting views.

This also enables auto-layout.