Add command line: -capslock=off (#1187)

This commit is contained in:
tomcw 2023-02-27 22:42:57 +00:00
parent 9cf3d00288
commit 453268a302
3 changed files with 10 additions and 0 deletions

View File

@ -397,6 +397,10 @@ bool ProcessCmdLine(LPSTR lpCmdLine)
{
KeybSetAltGrSendsWM_CHAR(true);
}
else if (strcmp(lpCmdLine, "-capslock=off") == 0) // GH#1187
{
KeybSetCapsLock(false);
}
else if (strcmp(lpCmdLine, "-no-hook-alt") == 0) // GH#583
{
JoySetHookAltKeys(false);

View File

@ -63,6 +63,11 @@ void KeybSetAltGrSendsWM_CHAR(bool state)
g_bAltGrSendsWM_CHAR = state;
}
void KeybSetCapsLock(bool state)
{
g_bCapsLock = state;
}
//===========================================================================
void KeybReset()

View File

@ -6,6 +6,7 @@ void ClipboardInitiatePaste();
void KeybReset();
void KeybSetAltGrSendsWM_CHAR(bool state);
void KeybSetCapsLock(bool state);
bool KeybGetCapsStatus();
bool KeybGetAltStatus();
bool KeybGetCtrlStatus();