           options.ok()
 
       $dialog.appendTo $ "body"
+
+      # Focus on the first button (the "OK") button.
+      $dialog.on "shown.bs.modal", ->
+        $dialog.find(".modal-footer .btn").first().focus()
 
     # Support for the Confirm mixin
     $("body").on "click", "[data-confirm-message]:not(.disabled)", ->

      confirmed = false

      content = """
                <div class="modal fade" role="dialog">
                  <div class="modal-dialog">
                    <div class="modal-content">
                      <div class="modal-header">

# ## t5/core/confirm-click
#
# Support for the Tapestry Confirm mixin, and for running confirmation dialogs programatically.
