When input:grabKeyboardOnFocus=no, exiting capture mode should ungrab the keyboard. Otherwise, focusing the window doesn't grab the keyboard, but toggling capture mode would leave the keyboard stuck in a grabbed state until defocused.
When input:grabKeyboardOnFocus=no, exiting capture mode should ungrab the keyboard. Otherwise, focusing the window doesn't grab the keyboard, but toggling capture mode would leave the keyboard stuck in a grabbed state until defocused.