Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Unable to input Chinese characters #461

Closed
TongMatin opened this issue Dec 21, 2023 · 2 comments
Closed

Unable to input Chinese characters #461

TongMatin opened this issue Dec 21, 2023 · 2 comments
Labels
bug Something isn't working stale

Comments

@TongMatin
Copy link

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));

@TongMatin TongMatin added the bug Something isn't working label Dec 21, 2023
@gunsha
Copy link
Contributor

gunsha commented Dec 22, 2023

@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

Copy link
Contributor

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.

@github-actions github-actions bot added the stale label Jan 22, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale
Development

No branches or pull requests

2 participants