mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
Add forgotten test to apply smart insert and delete during drag and
drop in a text view only when selection granularity is select by word. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29679 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
97bdfa294f
commit
d10e0c49e5
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-02-20 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSTextView.m (-writeSelectionToPasteboard:types:): Add
|
||||
forgotten test to apply smart insert and delete during drag and
|
||||
drop only when selection granularity is select by word.
|
||||
|
||||
2010-02-18 17:21-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSWindow.m: Remove private menu - (void) _menuUpdate, since
|
||||
|
|
|
@ -4776,7 +4776,8 @@ other than copy/paste or dragging. */
|
|||
forType: NSRTFDPboardType] || ret;
|
||||
}
|
||||
|
||||
if ([type isEqualToString: NSSmartPastePboardType])
|
||||
if ([type isEqualToString: NSSmartPastePboardType] &&
|
||||
[self selectionGranularity] == NSSelectByWord)
|
||||
{
|
||||
ret = [pboard setData: [NSData data]
|
||||
forType: NSSmartPastePboardType] || ret;
|
||||
|
|
Loading…
Reference in a new issue