Skip to content
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

Correctly convert surrogate UTF-16 to rune on MS-Windows #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kanryu
Copy link

@kanryu kanryu commented Feb 23, 2024

Hi,

I was looking for a window client library for Windows/Mac/Linux written in Go that people around the world can use with confidence, that is, can accurately input multiple languages with IME, and I found your project.

Your library doesn't support IME, but I plan to implement it.
First, as a simple fix, I implemented a fix that allows MS-Windows to accurately transfer characters that occur in UTF-16 surrogate pairs to the application.

CursorMoved: physicalX=1280 physicalY=750
KeyboardInput: state=Pressed scanCode=28 virtualKeyCode=e5
ReceivedCharacter: U+29E3D '𩸽'
KeyboardInput: state=Released scanCode=28 virtualKeyCode=Return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant