   (swap! state assoc :settings-modal-showing? false))
 
 (defn- on-keydown-new-project-name [js-evt]
-  (when (= ENTER-KEY (aget js-evt "keyCode"))
+  (when (= ENTER (aget js-evt "keyCode"))
     (click-create-project-btn)))
 
 (defn- on-mount-new-project-form

    [cuttle.util :refer [date-format file-exists? homedir log js-log now
                               on-mac? uuid write-file-async!]
                       :refer-macros [while-let]]
    [quiescent :include-macros true]
    [sablono.core :as sablono :include-macros true]))


  (show-el! "mainPage"))

(defn init! [proj-filenames]
  (add-events!)
  (load-settings-file!)
  (init-projects! proj-filenames)
  (show-main-page!)
