flutter / flutter/flutter

when using 3-set korean keyboard, textField ignores ' ' - word spacing (space bar key) on Windows

Open
#140,537 8 comments 0 reactions 0 assignees View on GitHub
a: desktop a: internationalization a: text input found in release: 3.16 found in release: 3.18 has reproducible steps P2 platform-windows team-windows triaged-windows
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. use 3-set korean keyboard (you can also setup windows configure - languages option : korean -> microsoft IME -> 3 set korean
2. input the ' ' (word spacing ) on textField

### Expected results

' ' in inputted on textField

### Actual results

spacing word (' ') is not represented.

- onKey() event handler of the focusNode on textField also is not caught ' '

### Code sample

Code sample

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

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

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

// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}

class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});

final String title;

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

class _MyHomePageState extends State {
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(child: TextField()),
);
}
}
```

### Flutter Doctor output

Doctor output

```console
[√] Flutter (Channel stable, 3.13.9, on Microsoft Windows [Version 10.0.19045.3803], locale ko-KR)
• Flutter version 3.13.9 on channel stable at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d211f42860 (8 weeks ago), 2023-10-25 13:42:25 -0700
• Engine revision 0545f8705d
• Dart version 3.1.5
• DevTools version 2.25.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at C:\Users\aki\AppData\Local\Android\sdk
X cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Professional 2019 16.11.13)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional
• Visual Studio Professional 2019 version 16.11.32413.511
• Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio
• 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.15+0-b2043.56-8887301)

[√] IntelliJ IDEA Ultimate Edition (version 2023.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.3.2
• Flutter plugin version 77.0.1
• Dart plugin version 233.13135.65

[√] VS Code (version 1.80.0)
• VS Code at C:\Users\aki\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.68.0

[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3803]
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.110
• Edge (web) • edge • web-javascript • Microsoft Edge 120.0.2210.91

[√] Network resources
• All expected network resources are available.

! Doctor found issues in 1 category.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.