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

add composition event support for Mac #1669

Closed

Conversation

kaiwk
Copy link
Contributor

@kaiwk kaiwk commented Aug 21, 2020

  • Tested on all platforms changed
    • Tested on Mac
  • Compilation warnings were addressed
  • cargo fmt has been run on this branch
  • cargo doc builds successfully
  • 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

see: #1497

* WIP: add composition event suppor prototype

This change requires x11-dl crate
Also, I should send actual string in IME

* send actual preedit string

* run cargo fmt

* update cargo.toml

* remove warning

* address comments in PR

* follow web spec

After the discussion on the PR, I decided to follow the Web
specification for the composition events. I added a few states to filter
out unnecessary events.

* remove println

* fix cursor pos calc

* Re-run CI

Co-authored-by: Murarth <[email protected]>
@kchibisov kchibisov self-requested a review October 10, 2020 17:48
@kchibisov
Copy link
Member

I'll take a look on it once we figure out renaming and preferred event structure on #1622, if you have any concerns or questions you can chime in.

@kaiwk kaiwk force-pushed the composition-event branch from 698f925 to 3f2e088 Compare November 22, 2020 15:56
Co-authored-by: Kirill Chibisov <[email protected]>
@kchibisov
Copy link
Member

We've updated the composition branch, so if you can update your PR based on that it'll be nice.

@kaiwk kaiwk force-pushed the composition-event branch from 3f2e088 to 964c269 Compare November 24, 2020 12:34
Closes servo/core-foundation-rs#405, seems we don't need InputMethodKit bindings.
@kaiwk kaiwk force-pushed the composition-event branch from 964c269 to 1484cc7 Compare December 1, 2020 13:05
@kchibisov
Copy link
Member

Note, you'd need to send IME::Enable at some point, though, given that both X11 and macOS doesn't have such information I may end up removing this even entirely.

@kaiwk
Copy link
Contributor Author

kaiwk commented Dec 3, 2020

Not sure why CI failed.

@madsmtm
Copy link
Member

madsmtm commented Feb 4, 2022

Moved to #2147, thanks for your work on this @kaiwk!

@madsmtm madsmtm closed this Feb 4, 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.

5 participants