Home > Back-end >  Problems about Chinese input word choice of event listeners (WINDOWS)
Problems about Chinese input word choice of event listeners (WINDOWS)

Time:10-24

I now know that can monitor the IME Windows news news is currently ongoing WM_IME_STARTCOMPOSITION WM_IME_ENDCOMPOSITION to symbol directly input (that is, Chinese input), I try to in your own applications, through the two messages to determine whether the current is input, to make the arrow keys, enter some function keys such as shielding,

On Windows 10, test a number of input method, baidu, QQ, Microsoft pinyin input method, can be done in accordance with the specification, my program can be run correctly,
But using sogou input method is a very odd situation,

Using spy++ news monitoring can be found,
This input method WM_IME_STARTCOMPOSITION is, after you determine the word choice and END in the same frame,
For word choice, and not directly to backspace or switch input method, makes the selected entry disappear, there would be no END,

But sogou input method of all the input control, can guarantee the right to block the function keys, so I'm curious, Windows standard input control is how to block the function keys?

CodePudding user response:

Is dealt with, we use GLFW is not new, there is a bug, led to the direct input case being spread to the program that caused the error, fix the bug in January this year,,,,

Or explain the bug causes, in the direct input, all key events will pass a parameter VK_PROCESSKEY said, so you need to the state of the event to a filter,
  • Related