oscarb
(Oscar 🇸🇪)
December 28, 2024, 7:17pm
1
Running Home Assistance as a Chrome App on macOS (not the native app, in that one I don’t think Esc works anywhere). Steps to reproduce:
Put a dashboard in Edit mode
Click any of the pen/edit-buttons
If you opened a “Tile Card configuration” for example, click the tab “Visibility” (or any other tab)
Click Esc on the keyboard
Expected to see the dialog close or first the focus to be removed and then the dialog to close on the next Esc press.
Actual: nothing happens, the focus remains on focused element.
Click outside the popup once you’re past step 3. Chances are, it won’t close, so spamming Esc won’t help.
I forgot what the element property is called right now, but I bet setting this will make Esc work again.
Good luck explaining this to all the people complaining that clicking outside the popup causes it to close if your Wth is implemented though.
2 Likes
oscarb
(Oscar 🇸🇪)
December 28, 2024, 9:13pm
3
Both clicking outside the popup or inside on anything that’s not focusable will remove the focus so Esc works again.
Not sure if the inability to remove the focus with Esc is by design or a bug, but personally I would expect pressing Esc multiple times would close popups/windows etc.