Skip to content

handling imgui char event from rendercanvas in jupyter_rfb #771

@kushalkolar

Description

@kushalkolar

Not sure where this has to be fixed, char events in imgui when using jupyter_rfb results in this:

Error during handling char event
Traceback (most recent call last):
  File "[/home/kushal/repos/rendercanvas/rendercanvas/_coreutils.py", line 41](http://localhost:8888/repos/rendercanvas/rendercanvas/_coreutils.py#line=40), in log_exception
    yield
  File "/home/kushal/repos/rendercanvas/rendercanvas/_events.py", line 197, in emit
    callback(event)
  File "/home/kushal/repos/wgpu-py/wgpu/utils/imgui/imgui_renderer.py", line 232, in _on_char_input
    self._backend.io.add_input_characters_utf8(event["char_str"])
                                               ~~~~~^^^^^^^^^^^^

The correct key is "data" not "char_str" , but not sure where this should be fixed, in wgpu or rendercanvas or jupyter_rfb. 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions