I visited Kagi Translate, entered a text, and it got translated. Then I clicked on the "$x left" button in the top right, which opened the "AI credits and usage" modal. I hit the Escape button, which closed the translation in the background, while the modal stayed open.
I expected the modal to have focus and the Escape button to close the modal.
Indeed when clicking on the modal with the mouse, it becomes active and Escape does close it.
=> Proposal: When opening the "AI credits and usage" modal, it should be considered in the foreground immediately, and the Escape button should close it.
Firefox 158.0.1 via Mozilla RPM on Fedora 44 with KDE.