Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the delete key behavior error when using the Chinese input method (输中文过程中delete键会删掉文本中的内容) #6532

Open
xcgworker opened this issue Sep 22, 2019 · 2 comments

Comments

@xcgworker
Copy link

Versions

  • Python: 3.7
  • OS: macOS
  • Kivy: 2.0.0
  • Kivy installation method: make

Description

the delete key behavior error when using the Chinese input method
When using the Chinese input method to input Chinese, press the delete key will delete the contents of the document. For example, if you input a Chinese character(小), you need to enter 4 charactersn (xiao). When I enter the 3rd character (xia) and enenter the error character ‘e’ , that is ‘xiae’, and want to delete the ‘e’ , it will delete a characters in the document.

使用中文输入法输入中文过程中,按回退键会将文档中的内容删掉。比如输入一个中文文字需要输入4个字符,当我输入到第3个字符想回退时,回退几次,它就会删掉文档中的几个文字。

Code and Logs

		TextInput:
			id:text_treat
			size_hint_y:0.5
@xcgworker
Copy link
Author

在使用中文输入时,sdl2窗口发送的event是text_edit,如果它的text长度大于0,应该忽略接下来的delete键
When using Chinese input, the event sent by the sdl2 window is text_edit. If its text length is greater than 0, the next delete key should be ignored.

xcgworker added a commit to xcgworker/kivy that referenced this issue Sep 23, 2019
textinput解决中文输入的问题
xcgworker added a commit to xcgworker/kivy that referenced this issue Sep 23, 2019
输入法完成一个输入后,需要结束textedit状态。
xcgworker added a commit to xcgworker/kivy that referenced this issue Sep 23, 2019
@rongchuan17
Copy link

大佬,我想问一下中文输入过程中,kivy会保留拼音的字母,是咋回事?

https://user-images.githubusercontent.com/89556779/215970898-0df58fb4-dc5a-40b7-b01a-c9d30f18ccdb.mp4
我的意思是他会同时保留‘你好啊’和‘ni‘hao’a’这个拼音

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants