Submit simple dialog on pressing enter

This makes it easy to switch between branches from the keyboard: Alt-B, type branch name, Enter.