Fixed: return key was not swallowed by textview but triggered the default button. (#2598)

This commit is contained in:
daboe01
2018-08-20 12:52:53 +02:00
committed by Martin Carlberg
parent ef2152beea
commit a178d43b01
3 changed files with 23 additions and 11 deletions
+2
View File
@@ -1673,6 +1673,8 @@ Sets the selection to a range of characters in response to user action.
- (void)insertLineBreak:(id)sender
{
[self insertText:@"\n"];
// make sure that the return key is "swallowed" and the default button not triggered as is the case in cocoa
[[self window] _temporarilyDisableKeyEquivalentForDefaultButton];
}
- (void)insertTab:(id)sender