Given the following code:
[:input {:type \"text\" :value (:text @app-state) :on-change (fn [e] (if (= 31 (.-keyCo
With key.
key
[:input {:on-key-press (fn [e] (if (= (.-key e) "Enter") (.log js/console "Enter") (.log js/console "Not Enter")))}]
Also of interest is :on-key-up and :on-key-down.
:on-key-up
:on-key-down