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

Proposal: better encapsulation of composition events #141

Open
Azmisov opened this issue Oct 26, 2022 · 1 comment
Open

Proposal: better encapsulation of composition events #141

Azmisov opened this issue Oct 26, 2022 · 1 comment

Comments

@Azmisov
Copy link

Azmisov commented Oct 26, 2022

Here is a link to my proposal. There are three API changes, with the goal being better control of composition events so that IME's can finally be predictably handled in a custom editor. Only the first API change is essential, and should be a straightforward, backwards-compatible modification that I believe can easily be implemented in current browsers.

Quick summary:

  1. compositionborder HTML attribute, signaling that compositions inside the element must only use that element's text content; also if the element has focus, the browser will not retarget the composition to an element outside
  2. requestCompositionEnd, to forcibly commit the composition if the developer knows the composition should end
  3. deleteCompositionText should revert the DOM, not just remove plaintext

@johanneswilm Not sure how you guys handle proposals around here

(See also my comment here in #134, which discusses many of the same points)

@johanneswilm
Copy link
Contributor

@Azmisov Thanks. Yes, this looks like something that deserves to be discussed. Let me investigate how we can handle your proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants