3 Commits

Author SHA1 Message Date
Yohei Yukawa
00a0bdce43 Remove special no-op rule from TipInputModeManager::OnSetFocus
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
2023-10-18 06:14:28 +00:00
Yohei Yukawa
58a3c22383 Make InputScope mapping compatible with MS-IME again
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
2023-10-14 13:22:23 +00:00
Yohei Yukawa
1c8121087e Rename doc/ to docs/
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
2016-08-18 18:22:05 -07:00