Comments for directories

Fixes #39 by using multiple selectors to correctly show the top comments for both files and directories, and stops key presses propagating when the dialog is shown to prevent Tracs keyboard navigation from intercepting them.