Repository: flutter
Issue: [iPad] Apple pencil input is not properly captured by the textfield toolbar 
Labels: a: text input,platform-ios,a: tablet,has reproducible steps,P2,found in release: 3.19,team-text-input,triaged-text-input,found in release: 3.22

### Steps to reproduce

1. Paste the sample code and run the app on your iPad.
2. Write `Hello Word` in TextField. (It doesn't matter whether you use a pencil or a keyboard)
3. Select `Hello World`. (It doesn’t matter whether you do it with a pencil or your fingers)
4. When you press the `Copy` button with your finger, copying works normally.
5. Pressing the `Copy` button with the **Apple Pencil** will paste, not copy.

### Expected results

It should be copied even if pressing the `Copy` button with the **Apple Pencil**.

### Actual results

I clicked copy, but it just pastes.

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() async {
  runApp(
    const MaterialApp(
      home: HomePage(),
    ),
  );
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
        child: Padding(
          padding: EdgeInsets.all(50),
          child: TextField(),
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Video demonstration</summary>

[[Upload media here]](https://github.com/flutter/flutter/assets/26322627/9c8c56c4-f0f5-4d03-8ea3-cc99f0748f52)

</details>


### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[!] Flutter (Channel [user-branch], 3.19.5, on macOS 14.4 23E214 darwin-arm64, locale ko-KR)
    ! Flutter version 3.19.5 on channel [user-branch] at /Users/devstory/project/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 300451adae (5 weeks ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/devstory/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode-15.3.0-Release.Candidate.app/Contents/Developer
    • Build 15E5202a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • 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 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.88.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.86.0

[✓] VS Code (version 1.88.0-insider)
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • iPad  • ios            • iOS 17.4.1 21E236

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
```

</details>