put proper types on modal dialog buttons so they respond to Enter and Esc properly