mitsuba-renderer / nanogui

Minimalistic C++/Python GUI library for OpenGL, GLES2/3, Metal, and WebAssembly/WebGL
Other
1.56k stars 196 forks source link

Enable input of non ascii characters for TextBox #117

Open oikumene opened 2 years ago

oikumene commented 2 years ago

Enable input of non-ascii unicode characters for TextBox. Enable input from Input Method (like mozc for Japanese) for TextBox.

I could not find a way to distinguish "Enter key solely pressed" and "Enter key when committing conversion in the Input Method". To enable input from an Input Method, I changed that text in TextBox is not committed at ENTER. Now text is committed only when mouse left button is pressed on other the the TextBox. I hope this specification change is accepted, or someone let me know the way to distinguish the two ENTER.