Rewrite insertion point movement actions properly.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15904 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-02-08 16:55:51 +00:00
parent 3e3834e59c
commit 1c1ddf28cf
5 changed files with 578 additions and 394 deletions

View file

@ -2690,6 +2690,7 @@ afterString in order over charRange.
}
[self setSelectionGranularity: NSSelectByCharacter];
_layoutManager->_selectionAffinity = affinity;
/* TODO: Remove the marking from marked text if the new selection is
greater than the marked region. */
@ -2710,7 +2711,7 @@ afterString in order over charRange.
- (NSSelectionAffinity) selectionAffinity
{
return NSSelectionAffinityDownstream;
return _layoutManager->_selectionAffinity;
}
- (void) setSelectionGranularity: (NSSelectionGranularity)granularity