[Pkg] The Trunk: Morphic-mt.829.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Apr 7 07:17:28 UTC 2015


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

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

Name: Morphic-mt.829
Author: mt
Time: 7 April 2015, 9:16:41.005 am
UUID: b0d0bfd8-0f93-8646-a532-dbceaa818990
Ancestors: Morphic-mt.828

Fixed the search bar to select all of its current contents on activation again (instead of deleting them)..

=============== Diff against Morphic-mt.828 ===============

Item was changed:
  ----- Method: SearchBar>>activate:in: (in category 'accessing') -----
  activate: event in: morph
  
+ 	self selection: (1 to: self searchTerm size).
- 	self searchTerm: ''. "We cannot select all here, because we only get contents on #accept, which triggers a search. So earse the term."
  	event hand newKeyboardFocus: morph textMorph.!

Item was changed:
  ----- Method: SearchBar>>buildWith: (in category 'toolbuilder') -----
  buildWith: builder
  
  	^ (builder build: (builder pluggableInputFieldSpec new
  		model: self;
  		getText: #searchTerm;
  		setText: #smartSearch:in:;
+ 		editText: #searchTermSilently:;
  		menu: #menu:shifted:;
  		selection: #selection;
  		help: 'Search...' translated))
  			name: #searchBar;
  			wantsFrameAdornments: false;
  			borderWidth: 0;
  			yourself!

Item was added:
+ ----- Method: SearchBar>>searchTermSilently: (in category 'accessing') -----
+ searchTermSilently: aString.
+ 	"Do not signal it to the model."
+ 	
+ 	searchTerm := aString.!



More information about the Packages mailing list