EpicGames / PixelStreamingInfrastructure

Moved to: https://github.com/EpicGamesExt/PixelStreamingInfrastructure
https://github.com/EpicGamesExt/PixelStreamingInfrastructure
MIT License
545 stars 258 forks source link

Unable to input Chinese characters #461

Closed TongMatin closed 8 months ago

TongMatin commented 9 months ago

Unable to input Chinese characters , compositionEndHandler Unable to trigger

const compositionEndHandler = (ev) => this.handleOnCompositionEnd(ev); const keyDownHandler = (ev) => this.handleOnKeyDown(ev); const keyUpHandler = (ev) => this.handleOnKeyUp(ev); const keyPressHandler = (ev) => this.handleOnKeyPress(ev); document.addEventListener("compositionend", compositionEndHandler); document.addEventListener("keydown", keyDownHandler); document.addEventListener("keyup", keyUpHandler); //This has been deprecated as at Jun 13 2021 document.addEventListener("keypress", keyPressHandler); this.keyboardEventListenerTracker.addUnregisterCallback(() => document.removeEventListener("compositionend", compositionEndHandler)); this.keyboardEventListenerTracker.addUnregisterCallback(() => document.removeEventListener("keydown", keyDownHandler)); this.keyboardEventListenerTracker.addUnregisterCallback(() => document.removeEventListener("keyup", keyUpHandler)); this.keyboardEventListenerTracker.addUnregisterCallback(() => document.removeEventListener("keypress", keyPressHandler));

gunsha commented 9 months ago

@TongMatin can you test with my branch to see if it works? i have a pending pull request for this https://github.com/gunsha/PixelStreamingInfrastructure/tree/master

github-actions[bot] commented 8 months ago

Issues go stale after 30 days of inactivity. Please comment or re-open the issue if you are still interested in getting this issue fixed.