We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using Enfocus-2.0.00-SNAPSHOT
With the ode block
"body" (efe/listen :keypress (fn [&args](. js/console log args) ))
I can't get key presses on the body of the document. yet, if I do
"#button1" (efe/listen :click (fn [&ags](. js/console log args) ))
everything works fine.
Question: how do I register a global key listener (I want left/right arrow keys to move slides).
Thanks!
The text was updated successfully, but these errors were encountered:
@txrev319 I did this very thing when I build clj-prezo. below is the code I used. I will do some testing with :keypress in my code I used :keydown
(defn enable-nav-keys [] (em/at js/document (em/listen :keydown #(exec-action! (.-keyCode %)))))
Sorry, something went wrong.
@ckirkendall: worked, thanks!
(fyi: I could have sworn I tried that, but for some reason, it didn't work last time.)
No branches or pull requests
I'm using Enfocus-2.0.00-SNAPSHOT
With the ode block
"body" (efe/listen :keypress (fn [&args](. js/console log args) ))
I can't get key presses on the body of the document. yet, if I do
"#button1" (efe/listen :click (fn [&ags](. js/console log args) ))
everything works fine.
Question: how do I register a global key listener (I want left/right arrow keys to move slides).
Thanks!
The text was updated successfully, but these errors were encountered: