Fixed a bug when sorting by the file icons (forgot to rename isDir field).

Dialog now returns the results when the user presses Enter when there is a custom file name.  Added a return event so that pressing the Enter key in the filename text box fires the return results function as well.
Removed some remaining code from before the file system API change.