fregante/GhostText
Never update the local text while the user is typing
Open
#183 opened on Jan 28, 2021
bughelp wanted
Repository metrics
- Stars
- (3,611 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
- User types in the browser
- The editor sends some text (like in #180)
- The browser overrides whatever the user types with what the editor sends.
This is a mistake. If you're typing somewhere, that's the only version that matters. External messages should be ignored. I attempted to fix this with faa5a8d8ea744907b1f968b915c34f30e1dd96a7 but it caused #181.
This applies to both parts (browser or editor) but it's probably easier to avoid both issues in the browser:
- do not echo received text back to the editor (I think this is already done)
- ignore text from the editor while the field is focused