[FIX] ListMorphArrowKeyFix-nk

ned at squeakland.org ned at squeakland.org
Tue Jun 29 22:01:52 UTC 2004


from preamble:

"Change Set:		ListMorphArrowKeyFix-nk
Date:			29 June 2004
Author:			Ned Konz

Even though SimpleHierarchicalListMorphs default to having a
keystrokeActionSelector: of #arrowKey:from:, if this is called on a
typical Model it will not work.

This is because of the differences between the PluggableListMorph, the
PluggableListView and the SimpleHierarchicalListMorph:

* In the PLM, the model is NEVER called for any un-modified arrow keys,
just for keys with modifiers (shift, alt, command, control?). The model
never hears about keys whose asciiValue is < 32.

* In the PLV, the model is ALWAYS called if it has a
keystrokeActionSelector. Its code, however, calls back to the view and
does the same thing that the PLM's specialKeyPressed: method does.

* In the SHLM, the model is ALWAYS called if it has a
keystrokeActionSelector.

This change set makes the SHLM and the PLV work the same as the PLM. It
moves the contents of Model>>arrowKey:from: into PLV, which is the only
place that the code was actually being used for anything.

This also fixes the problem with the 5934InspectorExplorer-rhi and arrow
keys.

"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ListMorphArrowKeyFix-nk.cs.gz
Type: application/octet-stream
Size: 1547 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040629/5d422543/ListMorphArrowKeyFix-nk.cs.obj


More information about the Squeak-dev mailing list