File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 36603660 // Let the drag handler handle this.
36613661 if ( webkit ) display . scroller . draggable = true ;
36623662 cm . state . draggingText = dragEnd ;
3663+ dragEnd . copy = mac ? e . altKey : e . ctrlKey
36633664 // IE's approach to draggable
36643665 if ( display . scroller . dragDrop ) display . scroller . dragDrop ( ) ;
36653666 on ( document , "mouseup" , dragEnd ) ;
38903891 try {
38913892 var text = e . dataTransfer . getData ( "Text" ) ;
38923893 if ( text ) {
3893- if ( cm . state . draggingText && ! ( mac ? e . altKey : e . ctrlKey ) )
3894+ if ( cm . state . draggingText && ! cm . state . draggingText . copy )
38943895 var selected = cm . listSelections ( ) ;
38953896 setSelectionNoUndo ( cm . doc , simpleSelection ( pos , pos ) ) ;
38963897 if ( selected ) for ( var i = 0 ; i < selected . length ; ++ i )
You can’t perform that action at this time.
0 commit comments