Disable Alt+` on Windows #1147
Answered
by
yukawa
niwazukihon
asked this question in
Q&A
-
Hi, I'd like to disable the {kTipPreservedKey_Kanji,
{VK_OEM_3, TF_MOD_ALT},
VK_OEM_3,
&kTipKeyTilde[0],
std::size(kTipKeyTilde) - 1}, from src/win32/tip/tip_text_service.cc, but it doesn't work. |
Beta Was this translation helpful? Give feedback.
Answered by
yukawa
Dec 19, 2024
Replies: 1 comment 3 replies
-
OK, on my Windows 11 24H2 environment, the behavior observed from the IME (e.g. Mozc) has changed from what I described in #395. As of Windows 11 24H2, I think you can achieve your goal as follows. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that here are what I can observe in my local environment.
VK_DBE_DBCSCHAR
down.VK_KANJI
up.VK_DBE_DBCSCHAR
down.VK_KANJI
up.As you can see, what Mozc is receiving are
VK_DBE_DBCSCHAR
andVK_KANJI
. Such a conversion is done at the OS layer.In this scenario, Mozc basically ignores key up events so let's ignore
VK_KANJI
at the step 4 and step 6.When Mozc receives
VK_DBE_DBCSCHAR
, it will be internally interpreted as "Hankaku/Zenkaku" as follows.mozc/src/win32/base/keyevent_handler.cc
Line 316 in 4c7f048