How does Etherpad listen to user input? #5407
Unanswered
marialovesbeans
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Specifically, on international keyboard (for example writing Chinese), user types some PinYin and select the Chinese character with mouse. That ONLY triggers
compositionend
event. And I dont seecompositionend
is telling Etherpad a new character is been inputted? This doesn't cause akeypress
event. So how Etherpad knowcompositionend
has made a change to DOM?Lastly, why are we not using
MutationObserver
to observe changed tocontenteditable
? Is this a reason for this design?Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions