fix scrolling with the space bar when using Japanese IME. Patch my Masayuki Nakano. b=420699 r=josh sr=roc

This commit is contained in:
joshmoz%gmail.com 2008-03-12 21:42:27 +00:00
Родитель a7a7cc7db6
Коммит 0f6011f5a6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -4419,7 +4419,7 @@ static PRBool IsSpecialGeckoKey(UInt32 macKeyCode)
// We don't do it if this came from performKeyEquivalent because // We don't do it if this came from performKeyEquivalent because
// interpretKeyEvents isn't set up to handle those key combinations. // interpretKeyEvents isn't set up to handle those key combinations.
PRBool wasComposing = nsTSMManager::IsComposing(); PRBool wasComposing = nsTSMManager::IsComposing();
if (!isKeyEquiv) if (!isKeyEquiv && nsTSMManager::IsIMEEnabled())
[super interpretKeyEvents:[NSArray arrayWithObject:theEvent]]; [super interpretKeyEvents:[NSArray arrayWithObject:theEvent]];
if (!mGeckoChild) if (!mGeckoChild)