Open jzhgithub18 opened 1 year ago
@jzhgithub18 Can you provide steps to replicate along with expected behavior as opposed to actual behavior ? Also, can you try the same on latest stable or master version and check if you still get same behavior or not ?
the 'code sample' had been provide in above. you can to replicate.
I checkout to master, the master version still get same behavior
Please check this issue and see if it is similar to your case.
Two questions are different questions,my case is the Pinyin textinput but https://github.com/flutter/flutter/issues/82124 issue is the Function keys not work to cursor position.
Thanks for the update and patience. I ran the code sample using latest stable and found out below in console logs:
flutter: ---mouse onExit
flutter: ---mouse enter
flutter: ---mouse onExit
2023-04-18 18:32:47.574 enable_settings_issue[39152:303030] _TIPropertyValueIsValid called with 5 on nil context!
2023-04-18 18:32:47.574 enable_settings_issue[39152:303030] imkxpc_getApplicationProperty:reply: called with incorrect property value 5, bailing.
2023-04-18 18:32:47.574 enable_settings_issue[39152:303030] Text input context does not respond to _valueForTIProperty:
2023-04-18 18:32:47.575 enable_settings_issue[39152:303030] _TIPropertyValueIsValid called with 4 on nil context!
2023-04-18 18:32:47.575 enable_settings_issue[39152:303030] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2023-04-18 18:32:47.575 enable_settings_issue[39152:303030] Text input context does not respond to _valueForTIProperty:
2023-04-18 18:32:47.577 enable_settings_issue[39152:303030] _TIPropertyValueIsValid called with 5 on nil context!
2023-04-18 18:32:47.577 enable_settings_issue[39152:303030] imkxpc_getApplicationProperty:reply: called with incorrect property value 5, bailing.
2023-04-18 18:32:47.577 enable_settings_issue[39152:303030] Text input context does not respond to _valueForTIProperty:
2023-04-18 18:32:47.577 enable_settings_issue[39152:303030] _TIPropertyValueIsValid called with 4 on nil context!
2023-04-18 18:32:47.577 enable_settings_issue[39152:303030] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2023-04-18 18:32:47.577 enable_settings_issue[39152:303030] Text input context does not respond to _valueForTIProperty:
2023-04-18 18:32:47.581 enable_settings_issue[39152:303030] _TIPropertyValueIsValid called with 5 on nil context!
2023-04-18 18:32:47.581 enable_settings_issue[39152:303030] imkxpc_getApplicationProperty:reply: called with incorrect property value 5, bailing.
2023-04-18 18:32:47.581 enable_settings_issue[39152:303030] Text input context does not respond to _valueForTIProperty:
2023-04-18 18:32:47.581 enable_settings_issue[39152:303030] _TIPropertyValueIsValid called with 4 on nil context!
2023-04-18 18:32:47.581 enable_settings_issue[39152:303030] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2023-04-18 18:32:47.581 enable_settings_issue[39152:303030] Text input context does not respond to _valueForTIProperty:
flutter: _openInputConnection
flutter: updateEditingValue TextEditingValue(text: ┤├, selection: TextSelection.collapsed(offset: 0, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: -1, end: -1))
flutter: ---mouse enter
flutter: ---mouse onExit
flutter: _openInputConnection
flutter: updateEditingValue TextEditingValue(text: ┤├, selection: TextSelection.collapsed(offset: 0, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: -1, end: -1))
2023-04-18 18:32:55.628 enable_settings_issue[39152:303030] _TIPropertyValueIsValid called with 4 on nil context!
2023-04-18 18:32:55.628 enable_settings_issue[39152:303030] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2023-04-18 18:32:55.628 enable_settings_issue[39152:303030] Text input context does not respond to _valueForTIProperty:
2023-04-18 18:32:55.629 enable_settings_issue[39152:303030] _TIPropertyValueIsValid called with 4 on nil context!
2023-04-18 18:32:55.629 enable_settings_issue[39152:303030] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2023-04-18 18:32:55.629 enable_settings_issue[39152:303030] Text input context does not respond to _valueForTIProperty:
flutter: ---mouse enter
flutter: ---mouse onExit
flutter: ---mouse enter
flutter: ---mouse onExit
flutter: ---mouse enter
flutter: ---mouse onExit
flutter: ---mouse enter
flutter: ---mouse onExit
Is it same output as you are reporting ?
Yes, it same output,and can try in English it can get normal updateEditingValue value.
Thanks for the update.
For English language, we get below console output which has updateEditingValue
:
flutter: ---mouse enter
flutter: ---mouse onExit
flutter: _openInputConnection
flutter: updateEditingValue TextEditingValue(text: ┤├, selection: TextSelection.collapsed(offset: 0, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: -1, end: -1))
flutter: ---mouse enter
flutter: ---mouse onExit
flutter: _openInputConnection
flutter: updateEditingValue TextEditingValue(text: ┤├, selection: TextSelection.collapsed(offset: 0, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: -1, end: -1))
flutter: ---mouse enter
flutter: ---mouse onExit
flutter: _openInputConnection
flutter: updateEditingValue TextEditingValue(text: ┤├, selection: TextSelection.collapsed(offset: 0, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: -1, end: -1))
flutter: ---mouse enter
flutter: ---mouse onExit
For Non-English, as stated https://github.com/flutter/flutter/issues/124966#issuecomment-1513094250
Looks like the behavior could be occuring due to https://github.com/flutter/flutter/issues/107462
cc @LongCatIsLooong from triage.
Can we now know what is causing this problem?
The triaged-desktop
label is irrelevant if there is no team-desktop
label or fyi-desktop
label.
Same here.imkxpc_setApplicationProperty:value:reply: called with incorrect property value 12, bailing.
this caused me refreshed the UI unexpected. And everything typed in textfiled will be wiped out.
Is there an existing issue for this?
Steps to reproduce
when i input Chinese word,updateEditingValue will not be callback, but when is english is normal. in windows platform is ok. and i propose has a function to set the position of Candidate Window
Expected results
Actual results
null
Code sample
Code sample
```dart import 'package:flutter/material.dart'; import 'package:flutter/services.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( // This is the theme of your application. // // Try running your application with "flutter run". You'll see the // application has a blue toolbar. Then, without quitting the app, try // changing the primarySwatch below to Colors.green and then invoke // "hot reload" (press "r" in the console where you ran "flutter run", // or simply save your changes to "hot reload" in a Flutter IDE). // Notice that the counter didn't reset back to zero; the application // is not restarted. primarySwatch: Colors.blue, ), home: MyHomePage( title: 'Flutter Demo Home Page', focusNode: FocusNode(debugLabel: 'text page')), ); } } class MyHomePage extends StatefulWidget { MyHomePage({super.key, required this.title, this.focusNode}); // This widget is the home page of your application. It is stateful, meaning // that it has a State object (defined below) that contains fields that affect // how it looks. // This class is the configuration for the state. It holds the values (in this // case the title) provided by the parent (in this case the App widget) and // used by the build method of the State. Fields in a Widget subclass are // always marked "final". final FocusNode? focusNode; final String title; @override StateScreenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console flutter: ---mouse enter flutter: ---mouse onExit flutter: _openInputConnection flutter: ---mouse enter flutter: ---mouse onExit flutter: updateEditingValue TextEditingValue(text: ┤├, selection: TextSelection.collapsed(offset: 0, affinity: TextAffinity.downstream, isDirectional: false), composing: TextRange(start: -1, end: -1)) flutter: ---mouse enter 2023-04-17 20:33:01.103 flutter_text_input_test[7111:1986259] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit 2023-04-17 20:33:01.340 flutter_text_input_test[7111:1986259] _TIPropertyValueIsValid called with 5 on nil context! 2023-04-17 20:33:01.340 flutter_text_input_test[7111:1986259] imkxpc_getApplicationProperty:reply: called with incorrect property value 5, bailing. 2023-04-17 20:33:01.340 flutter_text_input_test[7111:1986259] Text input context does not respond to _valueForTIProperty: 2023-04-17 20:33:01.341 flutter_text_input_test[7111:1986259] _TIPropertyValueIsValid called with 4 on nil context! 2023-04-17 20:33:01.341 flutter_text_input_test[7111:1986259] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing. 2023-04-17 20:33:01.341 flutter_text_input_test[7111:1986259] Text input context does not respond to _valueForTIProperty: ```Flutter Doctor output
Doctor output
```console [✓] Flutter (Channel stable, 3.7.5, on macOS 13.2.1 22D68 darwin-x64, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK version 33.0.2) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [!] Android Studio (version 2022.1) ✗ Unable to find bundled Java version. [✓] VS Code (version 1.77.0) [✓] Connected device (2 available) [✓] HTTP Host Availability```