mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:40:38 +00:00
* Source/NSTextView_actions.m: Fix keyboard movement scrolling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24037 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dc1e1120e0
commit
9bf357a90c
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2006-11-06 Matt Rice <ratmice@yahoo.com
|
||||
|
||||
* Source/NSTextView_actions.m: Fix keyboard movement scrolling.
|
||||
|
||||
2006-11-06 Matt Rice <ratmice@yahoo.com>
|
||||
|
||||
* Source/NSTextView_actions.m: Remove hack from previous patch.
|
||||
|
|
|
@ -746,21 +746,19 @@ added to the selection (1,3).
|
|||
[self setSelectedRange: NSMakeRange(anchor, cindex - anchor)
|
||||
affinity: NSSelectionAffinityDownstream
|
||||
stillSelecting: NO];
|
||||
[self scrollRangeToVisible: NSMakeRange(anchor, cindex - anchor)];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self setSelectedRange: NSMakeRange(cindex, anchor - cindex)
|
||||
affinity: NSSelectionAffinityUpstream
|
||||
stillSelecting: NO];
|
||||
[self scrollRangeToVisible: NSMakeRange(cindex, anchor - cindex)];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
[self setSelectedRange: NSMakeRange(cindex, 0)];
|
||||
[self scrollRangeToVisible: NSMakeRange(cindex, 0)];
|
||||
}
|
||||
[self scrollRangeToVisible: NSMakeRange(cindex, 0)];
|
||||
}
|
||||
|
||||
- (void) _move: (GSInsertionPointMovementDirection)direction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue