Merge pull request #26 from samthor/master

Prevent tab focus from leaving dialog, fixes #3