fix(ui): :bug: `HotkeysModal` and `SettingsModal` initial focus by joshistoast · Pull Request #8687 · invoke-ai/InvokeAI

@joshistoast

instead of using the `initialFocusRef` prop, the `Modal` component was focusing on the last available Button. This is a workaround that uses `tabIndex` instead which seems to be working.

Closes invoke-ai#8685

@joshistoast

@lstein

joshistoast added a commit to joshistoast/InvokeAI that referenced this pull request

Dec 23, 2025
…i#8687)

* fix(ui): 🐛 `HotkeysModal` and `SettingsModal` initial focus

instead of using the `initialFocusRef` prop, the `Modal` component was focusing on the last available Button. This is a workaround that uses `tabIndex` instead which seems to be working.

Closes invoke-ai#8685

* style: 🚨 satisfy linter

---------

Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>