windows: Only call `TranslateMessage` when we can't handle the event (#32166)

This PR improves key handling on Windows by moving the
`TranslateMessage` call from the message loop to after we handled
`WM_KEYDOWN`. This brings Windows behavior more in line with macOS and
gives us finer control over key events. As a result, Vim keybindings now
work properly even when an IME is active. The trade-off is that it might
introduce a slight delay in text input.


Release Notes:

- N/A
5b9d3ea097张小白 committed on 6/5/2025, 3:57:47 PM· committed by GitHubparent738cfdf
3 files changedLine totals unavailable