Просмотр исходного кода

Cleanup keyboard-shortcut UI code

Devon Zuegel 4 лет назад
Родитель
Сommit
1173d1ec34
1 измененных файлов с 1 добавлено и 11 удалено
  1. 1 11
      src/main/frontend/components/shortcut.cljs

+ 1 - 11
src/main/frontend/components/shortcut.cljs

@@ -20,17 +20,7 @@
       [:p.mb-4.mt-4
        (ui/keyboard-shortcut (-> keyboard-shortcut
                                  (clojure.string/trim)
-                                 (clojure.string/split  #" |\+")))
-       #_(map-indexed (fn [i key]
-                        [:span.keyboard-shortcut {:key i}
-                         [:code {:style {:font-size "1.5em" :margin-right "8px"}}
-                        ;; When displaying to the user, use "cmd" rather than
-                        ;; "meta" to describe the Mac mod key, because that's 
-                        ;; what the Mac keyboards actually say.
-                          (clojure.string/replace key "meta" "cmd")]])
-                      (-> keyboard-shortcut
-                          (clojure.string/trim)
-                          (clojure.string/split  #" |\+")))]]
+                                 (clojure.string/split  #" |\+")))]]
      [:div.cancel-save-buttons.text-right.mt-4
       (ui/button "Save" :on-click state/close-modal!)
       [:a.ml-4