Fix the schedule dialog box not being closed by esc

Gives the schedule dialog box a tabIndex of 0 so that
it can be focused.
Now the dialog box closes when esc is pressed, like normal.

Fixes #196
Merge pull request #197 from tbelaire/fix-esc-closing

Focus the schedule dialog box when it pops up