-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
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
Other events besides click events #17
Comments
I might put some hack together where:
|
Also, I end up in this situation where I have a lot of residual scripts inside my jupyter notebooks. I know it's not really your fault, but its causing the observer to get hit edit: fixed with a naive |
why can't you just use
|
I don't think that will catch it on a div? It feels like a lot of the keyboard pressing would have to be handled on the jupyter cell level |
Ah, if that's the problem, you need w = Widget()
ob = Observable(w, "keys", 0)
on(println, ob)
w(
dom"div[tabindex=1]"(style=Dict("height"=>"100px", "width"=>"100px"),
events=Dict("keyup" => @js e -> $ob[] = e.keyCode))
) |
don't checkout webio master on travis
Throughout your docs you only talk about click events:
However, I want to do keyboard click events on the actual jupyter cell.
The only way I can think about doing this in your framework is to have a
onload
functionDo you support
load
events?The text was updated successfully, but these errors were encountered: