iOS: Fix for shift key handling (by bslande)

This commit is contained in:
Martin Fleisz 2013-04-23 10:15:12 +02:00
parent 6f7bfa6c21
commit 1a336c30b8

View File

@ -238,7 +238,7 @@
if(isupper(character) && _shift_pressed == NO)
{
character = tolower(character);
[self sendVirtualKey:VK_SHIFT up:NO];
[self sendVirtualKey:VK_LSHIFT up:NO];
shift_was_sent = YES;
}
@ -253,7 +253,7 @@
// send the missing shift up if we had a shift down
if(shift_was_sent)
[self sendVirtualKey:VK_SHIFT up:YES];
[self sendVirtualKey:VK_LSHIFT up:YES];
}
- (void)handleSpecialKey:(int)character