w3c / edit-context

EditContext API
https://w3c.github.io/edit-context/
Other
28 stars 7 forks source link

Update Activation and Deactivation behaviors #61

Closed dandclark closed 1 year ago

dandclark commented 1 year ago

Currently the activate/deactivate the EditContext steps are empty stubs.

"Activating" an EditContext doesn't need to do anything, so remove that one.

Deactivating an EditContext should stop composition for that EditContext and fire compositionend if there was a composition.

Note, there's a bug where we have no other mechanism to end an EditContext's composition. Update the EditContext will be updated to handle those cases in a separate PR.