mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-05-28 17:41:37 +00:00
Add command line: -capslock=off (#1187)
This commit is contained in:
parent
9cf3d00288
commit
453268a302
|
@ -397,6 +397,10 @@ bool ProcessCmdLine(LPSTR lpCmdLine)
|
||||||
{
|
{
|
||||||
KeybSetAltGrSendsWM_CHAR(true);
|
KeybSetAltGrSendsWM_CHAR(true);
|
||||||
}
|
}
|
||||||
|
else if (strcmp(lpCmdLine, "-capslock=off") == 0) // GH#1187
|
||||||
|
{
|
||||||
|
KeybSetCapsLock(false);
|
||||||
|
}
|
||||||
else if (strcmp(lpCmdLine, "-no-hook-alt") == 0) // GH#583
|
else if (strcmp(lpCmdLine, "-no-hook-alt") == 0) // GH#583
|
||||||
{
|
{
|
||||||
JoySetHookAltKeys(false);
|
JoySetHookAltKeys(false);
|
||||||
|
|
|
@ -63,6 +63,11 @@ void KeybSetAltGrSendsWM_CHAR(bool state)
|
||||||
g_bAltGrSendsWM_CHAR = state;
|
g_bAltGrSendsWM_CHAR = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void KeybSetCapsLock(bool state)
|
||||||
|
{
|
||||||
|
g_bCapsLock = state;
|
||||||
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
void KeybReset()
|
void KeybReset()
|
||||||
|
|
|
@ -6,6 +6,7 @@ void ClipboardInitiatePaste();
|
||||||
|
|
||||||
void KeybReset();
|
void KeybReset();
|
||||||
void KeybSetAltGrSendsWM_CHAR(bool state);
|
void KeybSetAltGrSendsWM_CHAR(bool state);
|
||||||
|
void KeybSetCapsLock(bool state);
|
||||||
bool KeybGetCapsStatus();
|
bool KeybGetCapsStatus();
|
||||||
bool KeybGetAltStatus();
|
bool KeybGetAltStatus();
|
||||||
bool KeybGetCtrlStatus();
|
bool KeybGetCtrlStatus();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user