[squeak-dev] The Trunk: Morphic-ct.1949.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Mar 28 13:35:05 UTC 2022


Christoph Thiede uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.1949.mcz

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

Name: Morphic-ct.1949
Author: ct
Time: 28 March 2022, 3:33:24.490426 pm
UUID: 6f511594-4ada-da4b-b01d-5dbe8befb2f1
Ancestors: Morphic-mt.1947

In menus, handle the 'delete' key to reset the current filter rather than appending a special character to the filter.

=============== Diff against Morphic-mt.1947 ===============

Item was added:
+ ----- Method: MenuMorph>>handleDelStroke: (in category 'keystroke helpers') -----
+ handleDelStroke: evt
+ 
+ 	evt keyCharacter = Character delete ifFalse: [^ false].
+ 	self 
+ 		valueOfProperty: #matchString
+ 		ifPresentDo: [:str | "reset filter"
+ 			self setProperty: #matchString toValue: String new.
+ 			self selectItem: nil event: evt.
+ 			self displayFiltered: evt].
+ 	^ true!

Item was changed:
  ----- Method: MenuMorph>>keyStrokeHandlers (in category 'keystroke helpers') -----
  keyStrokeHandlers
  
  	^#(
  		handleCommandKeyPress:
  		handleCRStroke:
+ 		handleDelStroke:
  		handleEscStroke:
  		handleLeftStroke:
  		handleRightStroke:
  		handleUpStroke:
  		handleDownStroke:
  		handlePageUpStroke:
  		handlePageDownStroke:)!



More information about the Squeak-dev mailing list