Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Add composition event support #2241

Conversation

moko256
Copy link
Contributor

@moko256 moko256 commented Apr 5, 2022

This PR will add composition event support.
Related: #1497

  • IME events for Windows
  • Window::set_ime_allowed() for Windows
  • Breaking: Hide OS-drawn composing text for Windows (same as the other platforms)

Tested on ime example (feel free to comment if you try this PR):

  • Microsoft IME - Japanese (on Windows 10 19044.1620)
  • Google Japanese Input - Japanese (on Windows 10 19044.1620)
  • ATOK - Japanese (on Windows 10 19044.1620)

Tested on ime example but I am not native

  • Microsoft IME - Korean (on Windows 10 19044.1620)
  • Microsoft IME Pinyin - Chinese (Simplified, China) (on Windows 10 19044.1620)
  • (Microsoft) Vietnamse Telex - Vietnamse (on Windows 10 19044.1620)

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

@kchibisov kchibisov force-pushed the composition-event branch 3 times, most recently from 8e966e6 to 5db61c1 Compare April 6, 2022 10:12
@moko256 moko256 force-pushed the moko256_windows_composition_event branch from c1d660c to 59edbd1 Compare April 7, 2022 19:05
@moko256 moko256 force-pushed the moko256_windows_composition_event branch from ef8b87d to 9532e59 Compare April 7, 2022 19:15
@moko256 moko256 marked this pull request as ready for review April 8, 2022 14:14
Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on Windows parts of the API. I have no clue about windows and I don't have any machine running it, however I'll give you a code style review, so when one of the windows maintainers will look into that the changes should be impl wise and not code style, I hope.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
src/platform_impl/windows/event_loop.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/event_loop.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/event_loop.rs Outdated Show resolved Hide resolved
moko256 and others added 3 commits April 10, 2022 10:52
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks better, just some minor comments.

src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
src/platform_impl/windows/ime.rs Outdated Show resolved Hide resolved
moko256 and others added 8 commits April 12, 2022 03:02
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't test functional part of the PR, so leaving it to windows testers/maintainers.

@moko256
Copy link
Contributor Author

moko256 commented Apr 11, 2022

Thanks for reviewing!

@msiglreith msiglreith self-requested a review April 12, 2022 16:28
@moko256
Copy link
Contributor Author

moko256 commented Apr 13, 2022

@kchibisov Sorry, I changed CHANGELOG.md after your approves due to #2241 (review). Would you review this?

@kchibisov kchibisov merged commit bc90c3d into rust-windowing:composition-event Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants