Fork me on GitHub
#rum
<
2018-11-30
>
cheatex14:11:19

Hi. Does anyone have a working example of handling keyboard events?

cheatex14:11:43

I basically stuck at

(rum/defc test-c []
  [:div {:tabIndex 1, :on-keyPress on-key}
   [:p "Test"]])
and > react-dom.inc.js:894 Warning: Invalid event handler property onKeypress. Did you mean onKeyPress?

maridonkers14:11:09

Try :on-key-press

cheatex14:11:40

@maridonkers tabindex could also use some change I think ) Thanks!

👍 1