changed autofocus to only applied when non-modal.
removed comment
Merge pull request #11 from agektmr/master

changed autofocus to only applied when non-modal.