mirror of
https://github.com/reactos/reactos.git
synced 2026-06-06 21:51:53 +08:00
[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:
committed by
GitHub
parent
d6cc284435
commit
eb9a73c975
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user