Skip to content

[Windows] Problem deleting last composing character #92132

@justinmc

Description

@justinmc

On Windows, the last composing character either can't be deleted or takes an extra backspace.

  1. Run the app below (anything with a text field) on Windows.
  2. Type some composing text, such as "nihao" with your input set to Chinese pinyin.
  3. Use the backspace key to delete the characters you entered.

Expected: 5 backspaces should delete "nihao"
Actual: The fifth backspace removes the composing region and the sixth deletes the final "n". Or, sometimes I am unable to delete the final letter at all, but I'm not sure how to consistently reproduce that.

Here's a video, but unfortunately it doesn't capture the composing menu.

sandbox.2021-10-19.13-54-21.mp4
Code
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
//import 'package:flutter_localizations/flutter_localizations.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Flutter Demo Home Page'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: const <Widget>[
              TextField(),
            ],
          ),
        ),
      ),
    );
  }
}

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: annoyanceRepeatedly frustrating issues with non-experimental functionalitya: desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowplatform-windowsBuilding on or for Windows specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions