mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:30:37 +00:00
* Source/NSTextView.m (setSelectedRange:): Do not make the selected text visible.
(-didChangeText,-checkSpelling:): Make the selected text visible. * Source/NSTextView_actions.m (_moveTo:select:): Ditto. * Source/NSCell.m (-setUpFieldEditorAttributes:): Ditto. (-selectWithFrame:inView:editor:delegate:start:length:): Ditto. * Source/NSComboBoxCell (-validateSelection:,-textDidChange:): Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20575 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1b832938ee
commit
931e7652cc
5 changed files with 20 additions and 17 deletions
|
@ -2215,6 +2215,7 @@ After each user-induced change, this method should be called.
|
|||
*/
|
||||
-(void) didChangeText
|
||||
{
|
||||
[self scrollRangeToVisible: [self selectedRange]];
|
||||
[notificationCenter postNotificationName: NSTextDidChangeNotification
|
||||
object: _notifObject];
|
||||
|
||||
|
@ -2940,21 +2941,6 @@ afterString in order over charRange.
|
|||
{
|
||||
NSRange overlap;
|
||||
|
||||
if (stillSelectingFlag == NO)
|
||||
{
|
||||
/*
|
||||
TODO: should we really do this here?
|
||||
|
||||
Make the insertion point (or the moving endpoint of the selection)
|
||||
visible.
|
||||
*/
|
||||
if (affinity == NSSelectionAffinityUpstream)
|
||||
[self scrollRangeToVisible: charRange];
|
||||
else
|
||||
[self scrollRangeToVisible:
|
||||
NSMakeRange(charRange.location + charRange.length, 0)];
|
||||
}
|
||||
|
||||
/*
|
||||
If this call is caused by text being deleted, oldDisplayedRange might
|
||||
extend outside the current text. We clamp it to the current length here
|
||||
|
@ -3609,6 +3595,7 @@ shouldRemoveMarker: (NSRulerMarker *)marker
|
|||
if (errorRange.length)
|
||||
{
|
||||
[self setSelectedRange: errorRange];
|
||||
[self scrollRangeToVisible: errorRange];
|
||||
|
||||
misspelledWord = [[self string] substringFromRange: errorRange];
|
||||
[sp updateSpellingPanelWithMisspelledWord: misspelledWord];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue