Fork me on GitHub
#re-frame
<
2018-03-13
>
pieterbreed19:03:20

Hi everyone. How do you register a keypress event in a re-frame cljs app? I want to handle all arrow-keys presses (similar to a game or for a slideshow).

pieterbreed19:03:07

I'm trying this but it's not doing anything...

(events/listen js/document "keyup" (fn [e] (println (str "--" e))))

gadfly36121:03:01

@pieterbreed just a heads up, about to release a keypress library for re-frame in the coming days

MegaMatt21:03:08

anyone know of an example project with re-frame-async-flow-fx. certain things are not evident to me from the tutorials