[squeak-dev] Case sensitive "source with it" works in MVC but not in Morphic, what to do?

Bob Arning arning315 at comcast.net
Fri May 10 13:38:28 UTC 2013


Maybe, but what's happening here is in MenuItemMorph:

mouseDown: evt
     "Handle a mouse down event. Menu items get activated when the mouse 
is over them."

     evt shiftPressed ifTrue: [ ^super mouseDown: evt ].  "enable label 
editing"
     evt hand newMouseFocus: owner. "Redirect to menu for valid transitions"
     owner selectItem: self event: evt

I see this code as far back as squeak 3.2 with a 10/10/2000 date and 
Andreas's initials. If you comment out the first line, you get the 
behavior David was looking for. It would be interesting to know who 
might be using this feature.

Cheers,
Bob

On 5/10/13 7:23 AM, karl ramberg wrote:
> Morphic has shift+left-click drag selection of morphs.
>
> Karl
>
>
> On Fri, May 10, 2013 at 1:00 PM, Bob Arning <arning315 at comcast.net 
> <mailto:arning315 at comcast.net>> wrote:
>
>     It would be nice if the shift key worked as it once did and I
>     don't know what the "new" shift-key-in-menu paradigm is or whether
>     it could be plausibly reverted. However, it does seem useful if
>     the menu could give some indication of when there were two
>     possibilities for one menu item and which is going to happen if
>     you click now. Not everyone has that memorized.
>
>     Cheers,
>     Bob
>
>     On 5/9/13 9:35 PM, David T. Lewis wrote:
>>     On Thu, May 09, 2013 at 08:52:45AM -0400, Bob Arning wrote:
>>>     On 5/9/13 8:21 AM, David T. Lewis wrote:
>>>>     So maybe some other mechanism is better, such as a separate menu entry?
>>>     sounds good
>>>
>>     I've looked at this a bit more, and there are several other menu items for
>>     which case-sensitive matching is controlled by the shift key. I suspect that
>>     the original user interface concept here is that the shift key (which one
>>     might think of as the "upper case key") controls whether a menu selection
>>     should pay attention to case. For someone familiar with the keyboard shortcuts,
>>     this would be very efficient and easy to remember.
>>
>>     This mechanism does not work in Morphic because the shift key is used for
>>     other purposes. So the original concept of controlling case-sensitive searches
>>     based on state of the shift key still exists and it still works in MVC, but
>>     it has not been translated into something that works for Morphic.
>>
>>     I'm not sure that changing this for "method source with it" is a good idea
>>     unless that same approach can be applied consistently for "method strings
>>     with it", "class comments with it", etc. So I'm still thinking about it...
>>
>>     Dave
>>
>>
>>
>
>
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130510/7d4242a3/attachment.htm


More information about the Squeak-dev mailing list