start of basic #confirm method
add primary button in <= 2 button dialog, focus primary if available
use standard keyup event listener to determine pressing of escape key
handle click of close button on dialogs