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

EmojiEditText: Support copy/paste/cut #1038

Open
Khaos116 opened this issue Dec 9, 2023 · 5 comments
Open

EmojiEditText: Support copy/paste/cut #1038

Khaos116 opened this issue Dec 9, 2023 · 5 comments

Comments

@Khaos116
Copy link

Khaos116 commented Dec 9, 2023

  • Version of the library:com.vanniktech:emoji-google-compat:0.18.0-SNAPSHOT
  • Affected devices:Android Simulator https://www.yeshen.com/
  • Affected versions:Anroid 9.0

使用替换emoji时,EmojiEditText会出现没有替换的情况
When using replacement emoji, EmojiEditText will not be replaced.

1.mp4
@Khaos116
Copy link
Author

Khaos116 commented Dec 9, 2023

覆盖粘贴后表情不变的问题是没有走到判断方法内部
The problem that the expression remains unchanged after overwriting and pasting is that the judgment method has not been reached.
image

@Khaos116
Copy link
Author

Khaos116 commented Dec 9, 2023

当覆盖粘贴后,执行删除,会把多个emoji表情进行删除
When overwriting and pasting, executing deletion will delete multiple emoji expressions.

1.mp4

@vanniktech
Copy link
Owner

Have you tried the sample app?

@vanniktech vanniktech changed the title When using replacement emoji, EmojiEditText will not be replaced. EmojiEditText: Support copy/paste/cut Dec 10, 2023
@vanniktech
Copy link
Owner

So the problem is that EmojiEditText does not support for instance:

  1. copy a single emoji
  2. select a single emoji inside the EmojiEditText
  3. try to replace that selected Emoji with the copied emoji from step 1

Actual behavior: Nothing
Expected behavior: The emoji gets correctly replaced

@Khaos116
Copy link
Author

Your description is correct
89822D38AB234E4A2EC1836C3E79B89E

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

No branches or pull requests

2 participants