Fork me on GitHub
#om
<
2015-08-20
>
plexus14:08:20

what do people do to handle "global" keystroke events in Om?

plexus14:08:55

I'm building a game, it's just a single SVG component, but the SVG element doesn't seem to receive the events

jackjames15:08:07

@plexus: lots of options. rudimentary & contrived example: https://www.refheap.com/108542

jackjames15:08:36

@plexus: could also wire up a channel in a component's componentWillMount and put something on the channel in the event handler. or do all kinds of crazy stuff: https://github.com/circleci/frontend/blob/master/src-cljs/frontend/components/key_queue.cljs

plexus16:08:50

@jackjames: thanks, that's helpful