Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove code that forces lowercase text in console #6

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions osx/sys_osx.m
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ void Sys_DoEvents (NSEvent *myEvent, NSEventType myType)
for (i = 0; i < myKeyboardBufferSize; i++)
{
myCharacter = [myKeyboardBuffer characterAtIndex: i];

if ((myCharacter & 0xFF00) == 0xF700)
{
myCharacter -= 0xF700;
Expand All @@ -991,7 +991,7 @@ void Sys_DoEvents (NSEvent *myEvent, NSEventType myType)
if (myFlags & NSNumericPadKeyMask)
{
myKeyPad = [myEvent keyCode];

if (myKeyPad < 0x5D && gInNumPadKey[myKeyPad] != 0x00)
{
Key_Event (gInNumPadKey[myKeyPad], (myType == NSKeyDown));
Expand All @@ -1000,17 +1000,17 @@ void Sys_DoEvents (NSEvent *myEvent, NSEventType myType)
}
if (myCharacter < 0x80)
{
if (Sys_CheckSpecialKeys (myCharacter) == 0)
{
if (myCharacter >= 'A' && myCharacter <= 'Z')
myCharacter += 'a' - 'A';
Key_Event (myCharacter, (myType == NSKeyDown));
}
if (Sys_CheckSpecialKeys (myCharacter) == 0)
{
if (myCharacter >= 'A' && myCharacter <= 'Z')
Key_EventEx (tolower(myCharacter), myCharacter, (myType == NSKeyDown));
else
Key_Event (myCharacter, (myType == NSKeyDown));
}
}
}
}

break;

// special keys:
Expand Down