Ignores keyboard events with numeric mask.

This commit is contained in:
zonble 2011-10-02 21:21:18 +08:00
parent e857029c44
commit 1c304b51b8
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ public:
} }
// if the composing buffer is empty and there's no reading, and there is some function key combination, we ignore it // if the composing buffer is empty and there's no reading, and there is some function key combination, we ignore it
if (![_composingBuffer length] && _bpmfReadingBuffer->isEmpty() && ((flags & NSCommandKeyMask) || (flags & NSControlKeyMask) || (flags & NSAlternateKeyMask))) { if (![_composingBuffer length] && _bpmfReadingBuffer->isEmpty() && ((flags & NSCommandKeyMask) || (flags & NSControlKeyMask) || (flags & NSAlternateKeyMask) || (flags & NSNumericPadKeyMask))) {
return NO; return NO;
} }