Added tabindex=-1 to modal dialogs, to allow closing with keyboard. Fixes #218.