[macOS] IME preedit lost on focus change (#21601)