windows: Make IME input on Windows consistent with that on macOS + some small fixs (#13386)

### Before

![Screenshot 2024-06-22
180000](https://github.com/zed-industries/zed/assets/14981363/9efc3ccd-553c-4fe8-ada5-1b54f80bfbd5)

### After

![Screenshot 2024-06-22
175850](https://github.com/zed-industries/zed/assets/14981363/172675ca-9fda-45ae-bd97-59c33573a766)


Release Notes:

- N/A
328d98dddc张小白 committed on 6/25/2024, 2:55:15 AM· committed by GitHubparent76ab9e4
1 file changedLine totals unavailable