dialog: replace opts.focus with control-level focus field:
Move initial focus specification from opts.focus (string name) to a per-control 'focus' field (integer). This allows specifying both which control receives focus and the sub-item index within group controls (button/radio). Deprecated opts.focus now shows a warning message.
Example:
function! Test_dialog_focus()
let items = [
\ {'type': 'input', 'name': 'user', 'prompt': 'User:', 'value': 'admin'},
\ {'type': 'input', 'name': 'pass', 'prompt': 'Pass:'},
\ {'type': 'button', 'name': 'confirm', 'items': [' &Login ', ' &Cancel '], 'focus': 0},
\ ]
let result = quickui#dialog#open(items, {'title': 'Focus Test'})
echo result
endfuncSee the focus field in the button row.