Keyboard input

42 views
Skip to first unread message

Bruce Sherwood

unread,
Oct 18, 2016, 3:53:34 PM10/18/16
to Project Jupyter
There are of course many key bindings in the notebook. Is there a way to turn off those bindings when in a program that wants to process user keyboard events, for example to steer an object in a canvas?

MinRK

unread,
Oct 25, 2016, 8:06:57 AM10/25/16
to Project Jupyter

Yes! You need to call

keyboard_manager.register_events(element);`

where element is the element you want to get its own keyboard events, and keyboard_manager is accessible as either Jupyter.notebook.keyboard_manager or this.keyboard_manager, depending on context.

-Min


On Tue, Oct 18, 2016 at 9:53 PM, Bruce Sherwood <bruce.s...@gmail.com> wrote:
There are of course many key bindings in the notebook. Is there a way to turn off those bindings when in a program that wants to process user keyboard events, for example to steer an object in a canvas?

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/b59cad4b-9e77-4a8e-88c5-9c236752c808%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bruce Sherwood

unread,
Oct 25, 2016, 10:42:54 AM10/25/16
to Project Jupyter
Many thanks!

Reply all
Reply to author
Forward
0 new messages