Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rendercanvas/glfw.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,8 @@ def _on_char(self, window, char):
# Undocumented char event to make imgui work, see https://github.com/pygfx/wgpu-py/issues/530
ev = {
"event_type": "char",
"char_str": chr(char),
"data": chr(char),
"char_str": chr(char), # compat, remove few months from nov '25
"modifiers": tuple(self._key_modifiers),
}
self.submit_event(ev)
Expand Down
3 changes: 2 additions & 1 deletion rendercanvas/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ def _key_event(self, event_type, event):
def _char_input_event(self, char_str):
ev = {
"event_type": "char",
"char_str": char_str,
"data": char_str,
"char_str": char_str, # compat, remove few months from nov '25
"modifiers": None,
}
self.submit_event(ev)
Expand Down
3 changes: 2 additions & 1 deletion rendercanvas/wx.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,8 @@ def _char_input_event(self, char_str: Optional[str]):

ev = {
"event_type": "char",
"char_str": char_str,
"data": char_str,
"char_str": char_str, # compat, remove few months from nov '25
"modifiers": None,
}
self.submit_event(ev)
Expand Down