mediawiki-extensions-Visual.../modules/ve/ce
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
..
nodes Render inline annotations in CE 2012-11-28 11:21:59 -08:00
styles Alien Phantoms 2012-11-14 13:11:29 -08:00
ve.ce.BranchNode.js Render inline annotations in CE 2012-11-28 11:21:59 -08:00
ve.ce.ContentBranchNode.js Render inline annotations in CE 2012-11-28 11:21:59 -08:00
ve.ce.Document.js Fix even more inspector issues, and some ce ones as well 2012-11-21 15:26:12 -08:00
ve.ce.js Make entity nodes work in CE 2012-11-21 12:04:31 -08:00
ve.ce.LeafNode.js Render inline annotations in CE 2012-11-28 11:21:59 -08:00
ve.ce.Node.js Only apply HTML attributes to DOM nodes that are "safe" 2012-11-27 14:34:29 -08:00
ve.ce.NodeFactory.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.ce.Surface.js (bug 42401) Cursor movement fixes 2012-11-30 09:50:47 -08:00
ve.ce.SurfaceObserver.js Fix even more inspector issues, and some ce ones as well 2012-11-21 15:26:12 -08:00