When the modal opens, focus is within. Modals with inputs inside them already focus them. We should determine where to put the focus for modals without inputs (for example confirmation modals with only text inside.
I imagine we should focus "cancel" button first or maybe "close" button first. Focusing "confirm" button first should be avoided because it defeats the purpose of the confirmation (hit "enter" by mistake and your document is deleted).