From a9095f8dacf550468828b94ea202352e30ae870c Mon Sep 17 00:00:00 2001 From: zonble Date: Mon, 17 Oct 2011 10:29:47 +0800 Subject: [PATCH] Handles the number keyboard correctly. --- Source/InputMethodController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index 26932d2e..f90d262a 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -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];