shell: Clear Format dialog on enter.

Fixes #1218