mediawiki-extensions-Visual.../modules/ve/dm
Trevor Parscal 5e477cbe98 (bug 42401) Cursor movement fixes
ve.ce.Surface
* Added ve.ce.Surface.adjustCursor, which replaces repetitive and buggy code that was handling left and right arrow key presses
* New method only affects the selection target, so it won't collapse the selection on you - this was what caused bug 42401
* Made hasSlugAtOffset() actually return a boolean

ve.dm.Document
* Fixed turn-around issue in ve.dm.Document.getRelativeOffset - if the offset is already valid and we can't move in the direction we want, we should just leave it be, not turn around
* Since this method was being used by ve.ce.Surface to correct the cursor position on arrow key presses, it was causing the strange cursor jumping when you pressed an arrow key while at the edge of a document

ve.dm.SurfaceFragment
* Fixed typo where getAnnotationRangeFromSelection was preserving selection direction, but checking the wrong properties

ve.dm.Document.test
* Added tests that verify turn-around issue is fixed

Change-Id: Iba55cfc3d531e7d1333b78c94912ff22179aace8
2012-11-30 09:50:47 -08:00
..
annotations (bug 42140) Don't force spaces to underscores in internal links 2012-11-19 18:55:49 -08:00
nodes Store the data model element in the DM tree 2012-11-27 14:36:29 -08:00
ve.dm.Annotation.js Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00
ve.dm.AnnotationFactory.js Standards: Fix global variables and pass JSHint. 2012-10-23 00:53:48 +02:00
ve.dm.BranchNode.js Store the data model element in the DM tree 2012-11-27 14:36:29 -08:00
ve.dm.Converter.js Handle annotated inline nodes in the converter 2012-11-27 14:41:40 -08:00
ve.dm.Document.js (bug 42401) Cursor movement fixes 2012-11-30 09:50:47 -08:00
ve.dm.DocumentSynchronizer.js DocumentSynchronizer fix and cleanup 2012-10-25 11:02:58 -07:00
ve.dm.js New annotation API: Annotation and AnnotationFactory classes 2012-10-12 15:07:02 -07:00
ve.dm.LeafNode.js Store the data model element in the DM tree 2012-11-27 14:36:29 -08:00
ve.dm.Node.js Fix rebase artefact in ve.dm.Node.getAttributes() 2012-11-28 11:20:54 -08:00
ve.dm.NodeFactory.js Flag pre nodes as having significant whitespace 2012-11-07 12:10:58 -08:00
ve.dm.Surface.js Added contextChange event to surface model, replacing annotationChange 2012-11-26 15:57:02 -08:00
ve.dm.SurfaceFragment.js (bug 42401) Cursor movement fixes 2012-11-30 09:50:47 -08:00
ve.dm.Transaction.js Merge "Added contextChange event to surface model, replacing annotationChange" 2012-11-27 22:54:11 +00:00
ve.dm.TransactionProcessor.js Make annotating inline elements actually work 2012-11-27 14:41:40 -08:00