https://git.reactos.org/?p=reactos.git;a=commitdiff;h=72dbd87b1abf2d7810345…
commit 72dbd87b1abf2d7810345183e51e9f3868846f54
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Oct 11 12:06:51 2022 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Tue Oct 11 12:06:51 2022 +0900
[IMM32] Follow-up of deb4f4e; Add comments
CORE-11700
---
dll/win32/imm32/keymsg.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/dll/win32/imm32/keymsg.c b/dll/win32/imm32/keymsg.c
index a30f9b06f55..baea59d0ec8 100644
--- a/dll/win32/imm32/keymsg.c
+++ b/dll/win32/imm32/keymsg.c
@@ -759,7 +759,7 @@ ImmProcessKey(HWND hWnd, HKL hKL, UINT vKey, LPARAM lParam, DWORD
dwHotKeyID)
ImmUnlockImeDpi(pImeDpi);
}
- if (dwHotKeyID != INVALID_HOTKEY_ID)
+ if (dwHotKeyID != INVALID_HOTKEY_ID) /* Valid Hot-key */
{
if (Imm32ProcessHotKey(hWnd, hIMC, hKL, dwHotKeyID))
{
@@ -770,10 +770,12 @@ ImmProcessKey(HWND hWnd, HKL hKL, UINT vKey, LPARAM lParam, DWORD
dwHotKeyID)
if ((ret & IPHK_PROCESSBYIME) && (ImmGetAppCompatFlags(hIMC) &
0x10000))
{
+ /* The key has been processed by IME's ImeProcessKey */
LANGID wLangID = LANGIDFROMLCID(GetSystemDefaultLCID());
- if (PRIMARYLANGID(wLangID) != LANG_KOREAN ||
- (vKey != VK_PROCESSKEY && !(ret & IPHK_HOTKEY)))
+ if (PRIMARYLANGID(wLangID) != LANG_KOREAN || /* Korean doesn't wanna this
code */
+ (vKey != VK_PROCESSKEY && !(ret & IPHK_HOTKEY))) /* Is the key to
be processed? */
{
+ /* Add WM_KEYDOWN:VK_PROCESSKEY message */
ImmTranslateMessage(hWnd, WM_KEYDOWN, VK_PROCESSKEY, lParam);
ret &= ~IPHK_PROCESSBYIME;
ret |= IPHK_SKIPTHISKEY;