emilk / emilk/egui

Focus tracking for input on web is janky

Open
#4,571 0 comments 0 reactions 0 assignees View on GitHub
bug IME web
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

When running an `eframe` app on web, sometimes focus is not properly assigned to the hidden text `` (referred to as "text agent" from this point on) which results in strange behavior.

So far we've observed:
- Selecting text in a mutable text field on _any_ platform doesn't focus the text agent at all
- _Clicking_ on a mutable text field sometimes doesn't work on iOS, MacOS, and Android

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the focus failures in an eframe app on web and the listed mobile platforms, then inspect the hidden text input described as the "text agent" and the mutable text-field focus path. Done means text selection and clicking reliably focus the text agent across the reported platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
frontend, mobile-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.