-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Touch screen android TV and firefox gives multiple times occurring letters #5666
Comments
@dpranav007 is this just with A-Z, a-z and 0-9 or any keys? If it's just those keys specifically, it's probably an issue with onbeforeinput events and there's a single regex that you can change to not use native onbeforeinput events. |
@dylans Yes, the extra character behavior is only for A-Z, a-z. The behavior is only happening at first input of the input box(when input box is empty) and not further in any sentence. Also another issue that happens starting a new line/para(after 'enter' key press) the cursor moves 1 character back and letters show up in reverse order. This is applicable to special chars ($%^&*, etc) as well where the cursor moves backward vid-20240625-123630_3H1n1OXb.mp4 |
Description
Touch screen TV(android) + firefox browser creates extra instances of the characters being typed. Typing quickly in some cases makes the characters repeat in sequence.
Only occurs for on-screen keyboard. Not any physically attached one.
Eg. Typing 'ABC'(quickly) results in -> 'ABCABCABABA' being show up
Typing just 1 character - 'A' gets an extra character 'AA'
Recording
From slatejs website - https://www.slatejs.org/examples/richtext
PXL_20240618_152306730.TS.mp4
Sandbox
https://www.slatejs.org/examples/richtext
Steps
To reproduce the behavior:
Expectation
A clear and concise description of what you expected to happen. (Often it's helpful to test out the behavior of other editors like Google Docs, Medium, Notion, etc. to see how they handle the same issue.)
Environment
The text was updated successfully, but these errors were encountered: