Skip to content

TextInput: Shift-Insert does not work to paste #178483

@logiclrd

Description

@logiclrd

Steps to reproduce

  1. Within a Flutter visual tree, create a TextInput widget.
  2. When running, put focus into the TextInput.
  3. Press Shift+Insert.

Expected results

The results should be identical to pressing Ctrl+V: The clipboard's contents should be pasted into the TextInput.

Actual results

Nothing.

Code sample

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    Clipboard.setData(ClipboardData(text: "This is some text on the clipboard"));
    return MaterialApp(
      title: 'Shift-Insert Bug',
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: TextField(
        decoration: InputDecoration(labelText: "Click here and then press Shift-Insert. (For comparison, press Ctrl-V.)"),
      ),
    );
  }
}

Screenshots or Video

No response

Logs

No response

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.7, on Ubuntu 25.10 6.17.0-6-generic, locale en_CA.UTF-8)
[✓] Linux toolchain - develop for Linux desktop
[✓] VS Code (version 1.105.1)
[✓] Connected device (1 available)
[✓] Network resources

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsplatform-linuxBuilding on or for Linux specificallyplatform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionteam-text-inputOwned by Text Input teamtriaged-text-inputTriaged by Text Input teamwaiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions