Fix EditText bugs to do with not detecting edits when invoking menu
items
Tighten up focus handling when opening dialogs