Fix breaking normalization

pull/10493/head
Ben Yorke 2023-09-29 11:24:21 +02:00
parent 7868b3aee7
commit 3106eeff99
1 changed files with 2 additions and 1 deletions

View File

@ -18,13 +18,14 @@
("down" "↓") "↓"
("left" "←") "←"
("right" "→") "→"
("disabled") ""
("disabled" "Disabled") ""
("backspace" "delete") ""
("tab") ""
(nil) ""
(name key)))
(defn normalize-text [app-config text]
(js/console.log "normalize-text" text app-config)
(cond-> (or text "")
(keyword? text) (name)
:stringify (str)