Repository: flutter
Issue: [macOS] TextField left arrow key while composing deletes text inside composing range
Labels: a: text input,framework,engine,a: internationalization,a: desktop,has reproducible steps,P2,found in release: 3.7,found in release: 3.8,team-text-input,triaged-text-input

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Execute `flutter run` on the code sample <!-- (see "Code sample" section below) -->
2. Use Japanese as an input source
3. **(Don't skip this step)** Type anything and confirm out of its composing state. Make sure the typed letters in this step are not in the composing range. The error doesn't seem to occur if the entire text editing value of the TextField is within the composing range. The idea is to make sure there is at least one letter preceding the error causing composing region. 
4. Type any letter after step 3, and hit space key to bring up a composing candidate list
5. Press the left arrow key, at least 2 times for a single character or more for longer character sequence.
6. Then you should see the text in the composing range disappears. 

### Other notes & concerns
1. I'm not sure if this is an intended behavior. At least other text editors don't behave like this. 
2. Pressing any arrow key while composing makes macOS ring an error sound. It's the sound you often hear when you perform unintended operations. This is actually a much bigger concern. What's going on? Hope it doesn't lead to another issue in the future...

**Expected results:** <!-- what did you want to see? -->
The text inside composing region doesn't disappear with left arrow keys, nor does pressing any arrow key produces any error sound. 

**Actual results:** <!-- what did you see? -->
This is me pressing left arrow on my keyboard when text inside composing range disappears.
https://user-images.githubusercontent.com/48747894/219263753-c3a151fd-63e4-4802-b806-9f1fcb9bc7b7.mov

<details>
<summary>flutter doctor -v</summary>
[✓] Flutter (Channel stable, 3.3.0, on macOS 12.6 21G115 darwin-arm, locale en-JP)
    • Flutter version 3.3.0 on channel stable at /Users/kazuki/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffccd96b62 (6 months ago), 2022-08-29 17:28:57 -0700
    • Engine revision 5e9e0e0aa8
    • Dart version 2.18.0
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/kazuki/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A400
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] Connected device (3 available)
    • iPhone 12 mini (mobile) • 131D4213-85CC-466C-A118-80E33902D7D7 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • macOS (desktop)         • macos                                • darwin-arm64   • macOS 12.6 21G115 darwin-arm
    • Chrome (web)            • chrome                               • web-javascript • Google Chrome 110.0.5481.100

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

</details>

<details>
<summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
        child: Padding(
          padding: EdgeInsets.all(20),
          child: TextField(),
        ),
      ),
    );
  }
}

```

</details>

<details>
  <summary>Logs</summary>

Can't find any error logs being printed...

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->