[NTUSER] IntImmProcessKey: Use KF_... flags (#8897)

A tiny refactoring for code readability.
JIRA issue: CORE-19268
Use HIWORD macro and KF_...
constants.
This commit is contained in:
Katayama Hirofumi MZ
2026-04-23 22:53:36 +09:00
committed by GitHub
parent d6cc284435
commit eb9a73c975

View File

@@ -295,7 +295,7 @@ IntCheckImeHotKey(
{
PIMEHOTKEY pHotKey;
UINT uModifiers;
BOOL bKeyUp = (lParam & 0x80000000);
BOOL bKeyUp = (HIWORD(lParam) & KF_UP);
const BYTE *KeyState = MessageQueue->afKeyState;
static UINT s_uKeyUpVKey = 0;
@@ -681,7 +681,7 @@ IntImmProcessKey(
if (!pIMC)
return 0;
if ((lParam & (KF_UP << 16)) &&
if ((HIWORD(lParam) & KF_UP) &&
(pKL->piiex->ImeInfo.fdwProperty & IME_PROP_IGNORE_UPKEYS))
{
return 0;
@@ -709,7 +709,7 @@ IntImmProcessKey(
if (!(pKL->piiex->ImeInfo.fdwProperty & IME_PROP_NEED_ALTKEY))
{
if (uVirtualKey == VK_MENU || (lParam & 0x20000000))
if (uVirtualKey == VK_MENU || (HIWORD(lParam) & KF_ALTDOWN))
return 0;
}
break;