Skip to content

Disable Alt+` on Windows #1147

Answered by yukawa
niwazukihon asked this question in Q&A
Dec 18, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Note that here are what I can observe in my local environment.

  1. Open a notepad app.
  2. Down Alt key.
  3. Down ` key. Mozc receives VK_DBE_DBCSCHAR down.
  4. Up ` key. Mozc receives VK_KANJI up.
  5. Down ` key. Mozc receives VK_DBE_DBCSCHAR down.
  6. Up ` key. Mozc receives VK_KANJI up.
  7. Up Alt key.

As you can see, what Mozc is receiving are VK_DBE_DBCSCHAR and VK_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.

KeyEvent::HANKAKU, //

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@yukawa
Comment options

Answer selected by niwazukihon
@niwazukihon
Comment options

@yukawa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants