April 2005

NSTextView and tab key navigation

How to make a NSTextView participates in the keyboard navigation as a normal text field for the tab key but not for the return key ?
Pressing tab should navigate as usual for a text field,
pressing option-tab should insert a tab character in the text,
pressing newline/return - without any modifiers consideration - should insert a newline character in the text,
More...