zhkkjun

Results 4 comments of zhkkjun

程序使用输入法输入文字时必须告诉系统输入法窗口应该显示在哪里 大体流程是监听窗体的键盘消息识别出输入法的虚拟键码VK_PROCESSKEY,然后在basic_text_box::key中识别到这个键码,计算出插入位置的坐标,然后获取窗体的输入法上下文,设置输入法的候选框和合成框的位置。 根据之前的代码,VK_PROCESSKEY 会被识别成 key_code::unknown,后续不会进入“basic_text_box::key”中,变更后会进入“basic_text_box::key”中,确实会对之前的代码流程产生影响,不过 VK_PROCESSKEY 本身不会导致输入位置发生变化,因此不会产生实际影响。另外枚举key_code::ime_process_key设置为-2可能也不是很合适。 总之这里仅是提供一个思路,你可以对代码做出合适的调整 Below is the AI translation: When the program uses an input method to enter text, it must tell the system where the...

> Thank you for your contribution. I appreciate it! > > Is it possible to move all platform-specific (Windows) code to `lib/host/windows/` ? In particular, `lib/include/elements/base_view.hpp`, `lib/include/elements/element/text.hpp`, `lib/src/element/text.cpp` should not...

At this point, minimizing the window first, then restoring it, and clicking on the text box can lead to an anomaly. ![图片](https://github.com/user-attachments/assets/eea3deeb-ba56-4e02-aae6-d1ba4d5070e9)