Submit simple dialog on pressing enter

This makes it easy to switch between branches from the keyboard: Alt-B,
type branch name, Enter.
Merge pull request #255 from takluyver/checkout-enter

Submit simple dialog on pressing enter