Capturing key-presses in Clojurescript with Closure

1 Like

What’s the benefit you get from this vs (.addEventListener js/document)? :slight_smile:

Thanks for the good question! The event is browser consistency/compatibility. https://developers.google.com/closure/library/docs/events_tutorial#events-in-javascript-and-closure-library

1 Like

I’ve also updated the post with some Gotcha! we discovered, and a recommendation to use re-pressed if you have sophisticated keyboard application needs.

2 Likes

Thanks for the info. :slight_smile: And thanks for sharing.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.