Handles the number keyboard correctly.

This commit is contained in:
Zonble Yang 2011-10-17 10:29:47 +08:00
parent 1bea6cd501
commit 81631acbbc
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ public:
bool composeReading = false;
// caps lock processing : if caps locked, temporarily disabled bopomofo.
if ([NSEvent modifierFlags] & NSAlphaShiftKeyMask){
if ([NSEvent modifierFlags] & NSAlphaShiftKeyMask || [NSEvent modifierFlags] & NSNumericPadKeyMask){
if ([_composingBuffer length]) [self commitComposition:client];
if ([NSEvent modifierFlags] & NSShiftKeyMask) return NO;
NSString *popedText = [inputText lowercaseString];