(cherry picked from commit
27d9dcb)
);
},
run: function(e,s) {
);
},
run: function(e,s) {
- var direction, caretTo, cursorAtOperationEdge, goto, element;
if(e.key === KEYS.BACKSPACE) {
if(e.key === KEYS.BACKSPACE) {
- direction = 'above';
- caretTo = 'end';
- cursorAtOperationEdge = s.isAtBeginning(); // always true?
element = s.element;
}
else {
element = s.element;
}
else {
- direction = 'below';
- caretTo = 'start';
- cursorAtOperationEdge = s.isAtEnd(); // always true?
- element = cursorAtOperationEdge && s.canvas.getNearestTextElement(direction, s.element);
+ element = s.canvas.getNearestTextElement('below', s.element);
- if(!cursorAtOperationEdge || !element) {