mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1180564: insertNewline should use TextInputHandler::InsertText() instead of using insertText of NSTextInput protocol r=masayuki
This commit is contained in:
parent
3f70ab4e5d
commit
65ce43a8e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user