mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-27 20:57:40 +00:00
Fixed: return key was not swallowed by textview but triggered the default button. (#2598)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user