                                                              0))
                                                (reset! selected-task
                                                        nil)
+                                               (.preventDefault e))
+                                             (when (and (= (.-keyCode e)
+                                                           9)
+                                                        (.-shiftKey  e))
+                                               (-> ($ (str "#todo-" (:id task)))
+                                                   (.parent)
+                                                   (.parent)
+                                                   (.parent)
+                                                   (.parent)
+                                                   (.prev)
+                                                   (.find ":tabbable")
+                                                   (.last)
+                                                   (.focus))
+                                               (reset! selected-task
+                                                       nil)
                                                (.preventDefault e)))))
                           :on-focus #(reset! selected-task task)
                           :on-double-click edit}

(defn render-done
  [task]
  [:li
   {:class (build-to-do-class task
                              @selected-task)
    :id (str "done-" (:id task))
    :on-click (fn [e]
                (when (= (.-target e)
                         (.get ($ (str "#done-" (:id task)))
                               0))

   [:div.search-container
    [:div.icon
     [:i.fa.fa-search]]
    [:input#search-field
     {:placeholder "Search"}]]])

(defmulti main-toolbar-component (fn [id _] id))
