Add double click to open file
Refactor double click check

Thanks, @kevinsawicki!
Merge pull request #15 from remixz/dbl-click-new-file

Add double click to open file