mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Start drag operation in NSTextView only after a single click into the
selected range. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27244 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d78a39478c
commit
aeec5f704c
2 changed files with 15 additions and 8 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,8 +1,13 @@
|
|||
2008-12-07 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSTextView.m (-mouseDown:): Start drag operation only
|
||||
after a single click into the selected range.
|
||||
|
||||
2008-12-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source\NSSound.m:
|
||||
* Source\NSWorkspace.m:
|
||||
* Source\NSPasteboard.m:
|
||||
* Source/NSSound.m:
|
||||
* Source/NSWorkspace.m:
|
||||
* Source/NSPasteboard.m:
|
||||
Use new method to locate tool executables which handles the addition
|
||||
of .exe extenstion for mingw.
|
||||
|
||||
|
|
|
@ -4143,19 +4143,19 @@ right.)
|
|||
if ([type isEqualToString: NSStringPboardType])
|
||||
{
|
||||
if (changeRange.location != NSNotFound)
|
||||
{
|
||||
{
|
||||
NSString *s = [pboard stringForType: NSStringPboardType];
|
||||
|
||||
if ([self shouldChangeTextInRange: changeRange
|
||||
replacementString: s])
|
||||
{
|
||||
{
|
||||
[self replaceCharactersInRange: changeRange
|
||||
withString: s];
|
||||
[self didChangeText];
|
||||
changeRange.length = [s length];
|
||||
[self setSelectedRange: changeRange];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
@ -4755,7 +4755,9 @@ other than copy/paste or dragging. */
|
|||
break;
|
||||
}
|
||||
|
||||
canDrag = NSLocationInRange(startIndex, _layoutManager->_selected_range);
|
||||
/* A single click into the selected range can start a drag operation */
|
||||
canDrag = granularity == NSSelectByCharacter
|
||||
&& NSLocationInRange(startIndex, _layoutManager->_selected_range);
|
||||
proposedRange = NSMakeRange (startIndex, 0);
|
||||
|
||||
/* We manage clicks on attachments and links only on the first
|
||||
|
|
Loading…
Reference in a new issue