Changed the submission dialog in directory.tsx so keyboard users can operate it more reliably:
Opening it moves focus to the close button.
Tab and Shift+Tab keep focus inside the dialog.
Escape closes it.
Closing it returns focus to the button that opened it.
After a successful submission, focus moves to the success heading.