When editing text in a NSTextView, using the tab key at the beginning of a line does not move the cursor until another character is typed, which makes edition confusing as it looks like the tab was not accepted.

In a few cases I saw the correct behaviour, but a blank textview shows the bug. To reproduce it, start for example Ink.app, hit tab, the cursor does not move. Type a character, the character correctly places after the tab, with the cursor after the character.