[NTUSER][USER32][INCLUDE] s/SETIMEHOTKEY_DELETEALL/SETIMEHOTKEY_INITIALIZE/

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-10-19 12:15:11 +09:00
parent 2580889cfa
commit dff4579bd6
4 changed files with 6 additions and 6 deletions

View file

@ -399,7 +399,7 @@ typedef enum tagSETIMEHOTKEY_ACTION
{
SETIMEHOTKEY_DELETE = 1,
SETIMEHOTKEY_ADD,
SETIMEHOTKEY_DELETEALL
SETIMEHOTKEY_INITIALIZE
} SETIMEHOTKEY_ACTION;
#ifdef __cplusplus

View file

@ -403,7 +403,7 @@ IntSetImeHotKey(DWORD dwHotKeyId, UINT uModifiers, UINT uVirtualKey, HKL hKL, DW
IntAddImeHotKey(&gpImeHotKeyList, pNode);
return TRUE;
case SETIMEHOTKEY_DELETEALL:
case SETIMEHOTKEY_INITIALIZE:
IntFreeImeHotKeys();
return TRUE;

View file

@ -104,8 +104,8 @@ UpdatePerUserSystemParameters(DWORD dwReserved,
// Update Imm support and load Imm32.dll.
UpdatePerUserImmEnabling();
/* Delete all the IME hotkeys */
CliImmInitializeHotKeys(SETIMEHOTKEY_DELETEALL, NULL);
/* Initialize the IME hotkeys */
CliImmInitializeHotKeys(SETIMEHOTKEY_INITIALIZE, NULL);
/* Load Preload keyboard layouts */
IntLoadPreloadKeyboardLayouts();

View file

@ -428,11 +428,11 @@ VOID APIENTRY CliImmInitializeHotKeys(DWORD dwAction, HKL hKL)
BYTE bFlags = 0;
BOOL bCheck;
NtUserSetImeHotKey(0, 0, 0, NULL, SETIMEHOTKEY_DELETEALL);
NtUserSetImeHotKey(0, 0, 0, NULL, SETIMEHOTKEY_INITIALIZE);
bCheck = CliGetImeHotKeysFromRegistry();
if (dwAction == SETIMEHOTKEY_DELETEALL)
if (dwAction == SETIMEHOTKEY_INITIALIZE)
{
LangID = LANGIDFROMLCID(GetUserDefaultLCID());
IntSetFeKeyboardFlags(LangID, &bFlags);