[squeak-dev] The Trunk: Morphic-mt.1380.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Dec 21 08:05:21 UTC 2017


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1380.mcz

==================== Summary ====================

Name: Morphic-mt.1380
Author: mt
Time: 21 December 2017, 9:05:08.079231 am
UUID: a78fcc1d-dbf1-0c49-a445-df9f4834bbaf
Ancestors: Morphic-mt.1379

Removes the hack used for text dropping. Not necessary anymore due to the latest fix in PluggableTextMorphPlus.

=============== Diff against Morphic-mt.1379 ===============

Item was changed:
  ----- Method: TextMorphForEditView>>acceptDroppingMorph:event: (in category 'dropping/grabbing') -----
  acceptDroppingMorph: aTransferMorph event: evt
  	"Accept a text to be inserted at the event/cursor position. Either remove or keep the source text depending on the transfer morph's copy state."
  	
  	self removeProperty: #waitingForTextDrag.
  	
  	self
  		handleInteraction: [
  			aTransferMorph shouldCopy
  				ifFalse: [(aTransferMorph source respondsTo: #editor)
  					ifTrue: [aTransferMorph source editor destructiveBackWord]].
  			self editor addText: aTransferMorph passenger asText event: evt]
  		fromEvent: evt.
+ 	
+ 	evt hand newKeyboardFocus: self.!
- 		
- 	self flag: #hack. "mt: Shout background styling restores the selection, which interferes here. *sigh*"
- 	self editView instVarNamed: #selectionInterval put: nil.
- 	(aTransferMorph source respondsTo: #editView)
- 		ifTrue: [aTransferMorph source editView instVarNamed: #selectionInterval put: nil.]!



More information about the Squeak-dev mailing list