You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Merge pull request #3364 from matrix-org/bwindels/cider-ime-partii
New composer: force model update after IME composition finishes
This commit is contained in:
@@ -152,6 +152,9 @@ export default class BasicMessageEditor extends React.Component {
|
|||||||
|
|
||||||
_onCompositionEnd = (event) => {
|
_onCompositionEnd = (event) => {
|
||||||
this._isIMEComposing = false;
|
this._isIMEComposing = false;
|
||||||
|
// some browsers (chromium) don't fire an input event after ending a composition
|
||||||
|
// so trigger a model update after the composition is done by calling the input handler
|
||||||
|
this._onInput({inputType: "insertCompositionText"});
|
||||||
}
|
}
|
||||||
|
|
||||||
_onInput = (event) => {
|
_onInput = (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user