Bug 414903 Cannot use arrow keys and function keys at using IME r=josh, sr=roc, a1.9b3=beltzner

This commit is contained in:
masayuki@d-toybox.com 2008-01-30 21:26:55 -08:00
parent 7011750391
commit bd53691396

View File

@ -4065,10 +4065,14 @@ static BOOL keyUpAlreadySentKeyDown = NO;
if (modifierFlags & NSCommandKeyMask && [theEvent keyCode] == kTildeKeyCode)
return NO;
// don't bother if we don't have a gecko widget or we're in composition
if (!mGeckoChild || nsTSMManager::IsComposing())
// don't bother if we don't have a gecko widget
if (!mGeckoChild)
return YES;
// return 'NO' if we are in a transaction of IME.
if (nsTSMManager::IsComposing())
return NO;
// see if the menu system will handle the event
if ([[NSApp mainMenu] performKeyEquivalent:theEvent]) {
return YES;