-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Can't delete text after marking all #3661
Comments
i cannot replicate. |
I have the same issue. You can reproduce it if you try to delete the text in two steps. First select a part of the text, then click on delete key. Then, select the last remaining part, and try to delete it. It does not work. |
Delete on PC or MAC? |
Delete PC. On Mac it works well |
@asturur @mbaudry yea it lost focus once the delete button is clicked in the text and dragging to the end of the text. This might be causing the issue
|
still i cannot understand. If we manage to replicate it by code is even better |
@asturur selecting the full text and pressing delete doesn't remove it. |
For the record, backspace also doesn't delete the text. |
i tried on macos vmware with windows 10. i cannot replicate. |
I have the same problem on ubuntu 10.04 - Chrome 56 |
@asturur it happens on all browsers as long as you select the text using mouse. The only thing that can cause the issue is the
|
at time of issue number 1402 fabric was pretting different. i ll try again to replicate again. i have no luck. |
@asturur I'll record a gif today |
is not about gif, it does not mean i do not trust you. |
@asturur ok do the following |
Hi, @entonbiba i can't reproduce it with your steps (PC => win7+chrome 56.0.2924.87). But if i click at the end of the end of the text (red dot), and select all the text i can reproduce it.
Hope it's help. |
when you say press left button you mean mouse or keyboard? |
Hum, erratum, in fact it seems like when i select the text and release my selection with the cursor near the border of the jsfiddle, the itext component lose the focus and the delete press button doesn't work. If i deselect the text in the same iframe all is working fine. |
you may have centered the problem. that would be great |
i wanted to fix this, i think the only way is hook up the event when you leave the canvas to behave as a mouseup. |
fixes fabricjs#8177 caused by fabricjs#3759 and fixes fabricjs#3661 that was the motivation for fabricjs#3759 This issue was caused because the hiddenTextarea looses focus after mousedown. So I have added a focus call in mousemove that fixes both issues.
Version
1.7.3
Test Case
https://jsfiddle.net/noeytn5x/
Steps to reproduce
Mark all the text inside the textfield and click the delete key (or any key really)
Expected Behavior
The text is deleted
Actual Behavior
Nothing happens
It however works fine if I mark all by double-clicking
The text was updated successfully, but these errors were encountered: