improve New R Markdown dialog focus & key handling