correct a case in IME where hitting backspace after finishing composition would

seep through up the responder chain. (bug 181198)
This commit is contained in:
pinkerton%aol.net 2004-02-04 22:08:14 +00:00
parent a71dfb2da5
commit 3136273468

View File

@ -3148,6 +3148,14 @@ static void ConvertCocoaKeyEventToMacEvent(NSEvent* cocoaEvent, EventRecord& mac
}
// end NSTextInput
//
// keyDown:
//
// Handle matching cocoa IME with gecko key events. Sends a key down and key press
// event to gecko.
//
// NOTE: diacriticals (opt-e, e) aren't fully handled.
//
- (void)keyDown:(NSEvent*)theEvent;
{
PRBool isKeyDownEventHandled = PR_TRUE;
@ -3219,6 +3227,9 @@ 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);
// only force this through cocoa if this special-key was not handled by gecko
mLastKeyEventWasSentToCocoa = !isKeyEventHandled;
}
}