Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

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

Open
kanryu wants to merge 2 commits into
rajveermalviya:mainfrom
kanryu:feature/win32_utf16_surrrogated
Open

Correctly convert surrogate UTF-16 to rune on MS-Windows#12
kanryu wants to merge 2 commits into
rajveermalviya:mainfrom
kanryu:feature/win32_utf16_surrrogated

Conversation

@kanryu

@kanryu kanryu commented Feb 23, 2024

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant