With this commit, one remaining behavior difference between Mozc
and MS-IME in Windows 11 22H2 will be addressed.
Mozc has had a special no-op rule when switching input focus and the
InputScope specified in the newly focused field is the same as the one
that was previously observed in the same process. MS-IME, on the other
hand, does not have such a special no-op rule and always updates its
input mode upon switching input focus.
For better app compatibility, let's make it compatible with MS-IME's.
Closes#826.
PiperOrigin-RevId: 574371235
Mozc for Windows has been mapping IS_ALPHANUMERIC_HALFWIDTH InputScope
to "Halfwidth Alphanumeric Mode (IME On)" to be compatible with
Microsoft IME 2012. However, recent versions of MS-IME map it to
"Direct Mode", probably to make it more consistent with their
default settings of "Don't use direct input mode" [1].
This discrepancy can result in unexpected user experiences when app
developers assume IS_ALPHANUMERIC_HALFWIDTH is a way to turn off IME
based on recent MS-IME's behavior [2].
Anyway, Mozc's design philosophy has been to emulate MS-IME's behavior
whenever possible. Let's just update InputScope mapping to be
compatible with the latest version of MS-IME.
Closes#818.
[1]: https://github.com/google/mozc/issues/817
[2]: https://github.com/microsoft/terminal/issues/14407
PiperOrigin-RevId: 573458610
This CL renames doc to docs/ on GitHub, just in case in future we want
to expose web pages on GitHub Pages [1].
[1]: https://github.com/blog/2228-simpler-github-pages-publishing
BUG=
TEST=
REF_BUG=
REF_CL=130706872
REF_TIME=2016-08-18T18:22:05-07:00
REF_TIME_RAW=1471569725 -0700