I managed to accomplish the said behavior in this way > self > on: (Character arrowRight asShortcut) > do: [ :morph | | item | > item := self selectedItem. > morph selectedMorph toggleExpandedState. > self updateTree. > self selectedItem: item. ].
self is an instance of TreeModel. Is this the way it is supposed to be done? By the way Character arrowRight asShortcut does not always work: Sometimes it does not catch the event. And also the #selectedItem is not selected after expanding the node. Any intuition? Thanks in advance. Cheers, R On May 3, 2013, at 12:02 PM, roberto.mine...@usi.ch wrote: > Hi, > > I built a TreeModel using Spec. I cannot find a way to expand the items in > the model by using the left arrow on the keyboard. I cannot find neither the > correct binding nor the correct message to call. > > Any hint here? > > Thanks in advance, > R