Bug 1180564: insertNewline should use TextInputHandler::InsertText() instead of using insertText of NSTextInput protocol r=masayuki

This commit is contained in:
Josh Aas 2015-11-10 11:59:18 +09:00
parent 3f70ab4e5d
commit 65ce43a8e8

View File

@ -5461,7 +5461,11 @@ PanGestureTypeForEvent(NSEvent* aEvent)
- (void)insertNewline:(id)sender
{
[self insertText:@"\n"];
if (mTextInputHandler) {
NSAttributedString *attrStr = [[NSAttributedString alloc] initWithString:@"\n"];
mTextInputHandler->InsertText(attrStr);
[attrStr release];
}
}
- (void)flagsChanged:(NSEvent*)theEvent