   (when (= ENTER (aget js-evt "keyCode"))
     (click-create-project-btn)))
 
+(defn- on-mount-new-project-form []
+  (when-let [el (by-id new-project-input-id)]
+    (.focus el)))
+
 ;;------------------------------------------------------------------------------
 ;; Sablono Templates
 ;;------------------------------------------------------------------------------

      [:span.link-e7e58 {:on-click close-add-project-modal}
        "cancel"]]])

(sablono/defhtml new-project-step-2 [app-state]
  [:div.modal-body-fe4db
    [:div.modal-chunk-2041a
      [:label.label-b0246 "Project Name"]
      [:input.text-input-4800e
        {:on-change on-change-new-project-name-input
         :on-key-down on-keydown-new-project-name
         :type "text"
         :value (:new-project-name app-state)}]]

(def open (js/require "open"))
(def path (js/require "path"))
(def path-separator (aget path "sep"))

(def ENTER 13)
(def new-project-input-id (uuid))

;;------------------------------------------------------------------------------
;; App State
