Candidate window position is invalid when using physical keyboard
Categories
(GeckoView :: IME, defect, P3)
Tracking
(firefox97 fixed)
| Tracking | Status | |
|---|---|---|
| firefox97 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
Details
Attachments
(3 files)
candidate window of IME is overlapped at inputting test. Fennec works well.
But floating mode of candidate window is physical keyboard only mode
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 3•4 years ago
|
||
| Assignee | ||
Comment 4•4 years ago
|
||
Actually nsIWidget::GetDefaultScale() will always return 1.0 on GeckoView
([*1] and [*2]). When calculating CSS rect, although we have to consider zoom
factor too, but ConvertRectArrayToJavaRectFArray doesn't yet. So then,
GeckoView will notify IME of incorrect rect.
Now we already know the layout device rect, so we should use it directly
instead of converting to CSS unit.
Also, there is no way to add tests since we cannot have the physical keyboard
tests on geckoview-junit.
*1 https://searchfox.org/mozilla-central/rev/4646b826a25d3825cf209db890862b45fa09ffc3/widget/android/nsWindow.cpp#1919-1928
*2 https://searchfox.org/mozilla-central/rev/4646b826a25d3825cf209db890862b45fa09ffc3/widget/android/ScreenHelperAndroid.cpp#39-41
Updated•4 years ago
|
Comment 6•4 years ago
|
||
| bugherder | ||
Comment 7•4 years ago
|
||
Moving some keyboard bugs to the new GeckoView::IME component.
Description
•