make auto-repeat work with Japanese input. patch by waverider. r=joshmoz sr=smfr b=233288
git-svn-id: svn://10.0.0.236/trunk@171211 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
055e500982
commit
b152d3a29b
@ -3235,7 +3235,7 @@ static void ConvertCocoaKeyEventToMacEvent(NSEvent* cocoaEvent, EventRecord& mac
|
||||
return;
|
||||
}
|
||||
|
||||
if (!mInComposition && nonDeadKeyPress)
|
||||
if (nonDeadKeyPress)
|
||||
{
|
||||
// Fire a key press.
|
||||
nsKeyEvent geckoEvent;
|
||||
@ -3263,7 +3263,8 @@ static void ConvertCocoaKeyEventToMacEvent(NSEvent* cocoaEvent, EventRecord& mac
|
||||
}
|
||||
|
||||
// do we need to end composition if we got here by arrow key press or other?
|
||||
isKeyEventHandled = mGeckoChild->DispatchWindowEvent(geckoEvent);
|
||||
if (!mInComposition)
|
||||
isKeyEventHandled = mGeckoChild->DispatchWindowEvent(geckoEvent);
|
||||
|
||||
// only force this through cocoa if this special-key was not handled by gecko
|
||||
mLastKeyEventWasSentToCocoa = !isKeyEventHandled;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user