fizzy
fizzy copied to clipboard
Fix inability to unfocus title on new card with escape
Not much of a rails person, but had a try at fixing this; not quite sure if this is right.
When opening a new card, the title input is focused but we can't unfocus using Esc, and so we can't use Esc to go back to the board. A workaround is to tab to the next input then press Esc to unfocus then Esc again to exit to the board.
This PR intends to update this so that the title can be unfocused using Esc, then a second Esc can take us back to the board.
Before:
https://github.com/user-attachments/assets/e4d844d3-d33a-45fd-8050-c48829e08c1e
After:
https://github.com/user-attachments/assets/82a42fe7-05fd-4513-9364-f8bcc346b8a9
Notably this is not an issue when editing an existing card.