mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +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);
|
||||
}
|
||||
else if (strcmp(lpCmdLine, "-capslock=off") == 0) // GH#1187
|
||||
{
|
||||
KeybSetCapsLock(false);
|
||||
}
|
||||
else if (strcmp(lpCmdLine, "-no-hook-alt") == 0) // GH#583
|
||||
{
|
||||
JoySetHookAltKeys(false);
|
||||
|
@ -63,6 +63,11 @@ void KeybSetAltGrSendsWM_CHAR(bool state)
|
||||
g_bAltGrSendsWM_CHAR = state;
|
||||
}
|
||||
|
||||
void KeybSetCapsLock(bool state)
|
||||
{
|
||||
g_bCapsLock = state;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
||||
void KeybReset()
|
||||
|
@ -6,6 +6,7 @@ void ClipboardInitiatePaste();
|
||||
|
||||
void KeybReset();
|
||||
void KeybSetAltGrSendsWM_CHAR(bool state);
|
||||
void KeybSetCapsLock(bool state);
|
||||
bool KeybGetCapsStatus();
|
||||
bool KeybGetAltStatus();
|
||||
bool KeybGetCtrlStatus();
|
||||
|
Loading…
Reference in New Issue
Block a user