[TSF][IMM] Update inputmode support type per current spec on Windows
Categories
(Core :: DOM: UI Events & Focus Handling, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
References
(Regressed 1 open bug)
Details
(Keywords: inputmethod)
Attachments
(6 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
We will update values via bug 1509527.
Also, we have typos such as https://searchfox.org/mozilla-central/rev/b2ccce862ef38d0d150fcac2b597f7f20091a0c7/widget/windows/TSFTextStore.cpp#3993
Comment 1•5 years ago
|
||
Moving all open keyboard/IME handling bugs to DOM: UI Events & Focus Handling component.
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 2•5 years ago
|
||
I think that you need to update IMEHandler::SetInputScopeForIMM32()
too.
https://searchfox.org/mozilla-central/rev/202a285024f174c2d2bf2152d9cba90a03723eab/widget/windows/WinIMEHandler.cpp#637
Assignee | ||
Comment 3•5 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900) from comment #2)
I think that you need to update
IMEHandler::SetInputScopeForIMM32()
too.
https://searchfox.org/mozilla-central/rev/202a285024f174c2d2bf2152d9cba90a03723eab/widget/windows/WinIMEHandler.cpp#637
Yes, I will clean up this since this is duplicated code.
Assignee | ||
Comment 4•5 years ago
|
||
Gecko has duplicated code for input scope support, so I would like to clean up
this.
Assignee | ||
Comment 5•5 years ago
|
||
Current WHATWG spec means that numeric
is IS_DIGITS
and decimal
is
IS_NUMBER
.
Depends on D68312
Assignee | ||
Comment 6•5 years ago
|
||
Current WHATWG spec is that inputmode
attribute supports non-input element.
I would like to remove input element check for bug 142484 that is
contenteditable support.
Depends on D68313
Assignee | ||
Comment 7•5 years ago
|
||
Unfortunately, current on-screen keyboard (OSK) code in Gecko doesn't work on
current Windows 10. Actually, Windows automatically control OSK when getting
focus. But this isn't good for web browser since inputmode
spec can close
OSK by none
value.
Windows 10 RS1 has new API (IInputPane [*1]) to control software keyboard. So
we have to use it if OS is RS1 or later.
TSF has new flag as TS_SD_INPUTPANEMANUALDISPLAYENABLE
not to control OSK by
TSF. We should use it.
IMM doesn't have this feature to manage OSK. This will become a limitation for
inputmode
implementation.
[*1] https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane
Depends on D68314
Assignee | ||
Comment 8•5 years ago
|
||
As long as I test on my environment, bug 1226148 isn't fixed. Since native
message queue is high priority, Gecko may check whether focus is changed
before changing focus to another.
So we shouldn't use native message queue for this. It is better to use idle
queue instead.
Depends on D68315
Assignee | ||
Comment 9•5 years ago
|
||
inputmode=none
means that OSK is closed.
SetInputContext
doesn't call DismissOnScreenKeyboard
directly since
DismissOnScreenKeyboard
has no hack of Firefox VR.
Depends on D68316
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
Backed out 6 changesets for causing mingw bustages on TSFTextStore.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/95735f5f18e039cbe9f77f863a50f4b4c27f556b
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=296609787&repo=autoland&lineNumber=70742
Assignee | ||
Comment 12•5 years ago
|
||
passed.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4efc5bdcbe6ce9d0137f3826ca783ce529de91b6
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0e93a09256cf
https://hg.mozilla.org/mozilla-central/rev/d093998cd803
https://hg.mozilla.org/mozilla-central/rev/16ece38ec547
https://hg.mozilla.org/mozilla-central/rev/a08598089a5e
https://hg.mozilla.org/mozilla-central/rev/662d50adf92a
https://hg.mozilla.org/mozilla-central/rev/3c9c7960f75f
Description
•