Close window on Esc
Style fixes and code simplifications
Another style fix
Consolidate strings so they are added to the catalog just once.
Make logic menu field more font dynamic, wasn't working for Japanese

Some style fixes and code simplications too.
Fix bug involving the condition string being removed when it shouldn't

This bug occured when you selected from the mime type menu field while in
attribute mode. The rows are removed and added again but the condition string
view was left out because the menu item wasn't marked yet. Reordered to remove
row, then set marked, then add row checking if marked and adding the condition
string view based on the marked mime type. If no mime types are set it uses the
first mimetype instead which is what we want in that case.