mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
Don't advance cursor when adding new line at start of node
Bug: 48735 Change-Id: I934888ce727258cf3feb3e28d822e507554da701
This commit is contained in:
parent
afe99d400a
commit
4f773438fb
|
@ -1128,6 +1128,7 @@ ve.ce.Surface.prototype.handleEnter = function ( e ) {
|
|||
tx = ve.dm.Transaction.newFromInsertion(
|
||||
documentModel, contentBranchModel.getOuterRange().from, emptyParagraph
|
||||
);
|
||||
advanceCursor = false;
|
||||
} else if ( cursor === contentBranchModelRange.to ) {
|
||||
tx = ve.dm.Transaction.newFromInsertion(
|
||||
documentModel, contentBranchModel.getOuterRange().to, emptyParagraph
|
||||
|
|
Loading…
Reference in a new issue