-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(IText): behaviour of moving cursor down after select word #7803
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
base: master
Are you sure you want to change the base?
fix(IText): behaviour of moving cursor down after select word #7803
Conversation
Good timing, we are working on IText :) |
You should checkout the #7674 branch and see if what you experience happens after applying the fix |
Hi, This branch does not solve the situation I meet. I just realize that the problem happen when an emoji 🦆 appears in the text, and I added a test of this case. You can try it on the home page of fabricjs.com. |
hi @Superlin-supreme and thanks for your first pr, complete of unit tests. I ll look at this branch asap. This is mostly what i look at when i judge the behavour. |
Hi @asturur, |
I revert the change of behavior when move cursor down. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi there,
I found a problem on IText and tried to fix it.
When the user selects a word and presses down key, the cursor does not move to the right position, unlike <textarea>.
if it is not the last line, the cursor will move down and close to the right side. But this is not a problem, maybe it's designed to be like this.


In the same case, <textarea> will move the cursor to the left.
When the same case happen in the last line, the cursor will not move to the end of text, and the right key doesn’t work after that.

It is not difficult to fix this problem, and I change the test unit of this case.
Hope I can help 🦆