Skip to content
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

Backspace doesn't work in text edits on egui_web with virtual keyboards (on mobile) #1121

Open
yusdacra opened this issue Jan 16, 2022 · 4 comments
Labels
bug Something is broken text Problems related to text web Related to running Egui on the web

Comments

@yusdacra
Copy link
Contributor

yusdacra commented Jan 16, 2022

Describe the bug
On mobile browsers, with virtual keyboards, pressing backspace on it doesn't delete anything.

To Reproduce
Steps to reproduce the behavior:

  1. create eframe app with text edit
  2. open it in browser on a mobile phone
  3. type something, observe pressing backspace not deleting anything

Expected behavior
It should delete fine.

Screenshots

Smartphone (please complete the following information):

  • Device: Xiaomi Redmi Note 8
  • OS: Android 11
  • Browser: Bromite (Chromium based) (also tested on Brave)
  • Version: 96.0.4664.54

Additional context

@yusdacra yusdacra added the bug Something is broken label Jan 16, 2022
@BctfN0HUK7Yg
Copy link
Contributor

ScreenRecord-2022-01-17-11-20-53_5
Not only Backspace.
When I start typing I see strange message "Hkgghbv".
Then all my inputed text become selected.
I can delete with Backspace my text but can't remove first letter.
When I drop selection and try to type again it paste all my previous text.

@emilk emilk added the web Related to running Egui on the web label Jan 17, 2022
@emilk
Copy link
Owner

emilk commented Jan 24, 2022

Text editing on mobile overall is not great. I think we need to fake a <form> field or something. Someone better at web stuff than me need to help out here!

@emilk emilk added the text Problems related to text label Jan 24, 2022
@BctfN0HUK7Yg
Copy link
Contributor

With iPad virtual keyboard in browser works well!

@kud1ing
Copy link
Contributor

kud1ing commented Jun 18, 2022

On iOS (iPhone) backspace works. If you want to remove multiple characters, keeping backspace pressed does not work though. One has to press it multiple times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken text Problems related to text web Related to running Egui on the web
Projects
None yet
Development

No branches or pull requests

4 participants