Interesting right? Once you enter text into paragraph, you cannot remove the paragraph (nor merge it with previous one) by pressing "backspace" at its beginning. I consider this a bug.
I am using Firefox Quantium 57.0 (64 bits) on Windows 7.
I have made some debug using debugger in Firefox.
Interestingly in function Text.prototype._keyBack statement "return" is executed in:
if (!(selection.get()[0] === 0 && selection.isCollapsed())) {
return;
}
because selection.get()[0] return ONE instead of ZERO even though cursor is at the beginning of line.
I think this is some effect of desynchronization between element.content and innerHTML.
I don't remember now what i have exactly done, but i somehow got content.characters and it seem still have that last removed letter (here "y").
Anyway, even if i am wrong about how it works. I still think it is a bug. If I press "q" then "left" then "delete", then I am able to remove paragraph, but no if it WAS not empty and now IS empty. That is weird and am sure it shouldn't work like that.
@theGrabix thanks for the report, I can confirm I'm able to reproduce this issue using the steps described - I may move the issue into ContentSelect as I think that's where the root of the problem is.
It goes like that:
Interesting right? Once you enter text into paragraph, you cannot remove the paragraph (nor merge it with previous one) by pressing "backspace" at its beginning. I consider this a bug. I am using Firefox Quantium 57.0 (64 bits) on Windows 7.
I have made some debug using debugger in Firefox. Interestingly in function Text.prototype._keyBack statement "return" is executed in:
because selection.get()[0] return ONE instead of ZERO even though cursor is at the beginning of line. I think this is some effect of desynchronization between element.content and innerHTML. I don't remember now what i have exactly done, but i somehow got content.characters and it seem still have that last removed letter (here "y").
Anyway, even if i am wrong about how it works. I still think it is a bug. If I press "q" then "left" then "delete", then I am able to remove paragraph, but no if it WAS not empty and now IS empty. That is weird and am sure it shouldn't work like that.