http://java.net/jira/browse/MACOSX_PORT-772 submitted 2011/12/09 by Yuri Nesterenko
Run the attached text. When it finished what it does, select all and press a letter (say, 'i'). Immediately you'll get not one but 2 TextEvents with 'i'.
For some reason the unit test mentioned below sometimes works OK but mostly fails. It's success is a matter of timing perhaps.