[Cuis-dev] MenuItemMorph mouseButton1Up:localPosition: not called
Bernhard Pieber
bernhard at pieber.com
Sat Mar 18 14:34:02 PDT 2023
Thanks for the hint. Now I see the turnMouseButton1Into2 event which seems to cause it.
Cheers,
Bernhard
> Am 18.03.2023 um 19:18 schrieb Gerald Klix via Cuis-dev <cuis-dev at lists.cuis.st>:
>
> Please look at: MenuItemMorph>>#mouseButton2Up:localPosition
>
> @Juan: BTW: openinHand is abit broken, because it adds a strange offset
> to the morphs's position.
>
>
> HTH,
>
> Gerald
>
>
> On 3/18/23 6:51 PM, Bernhard Pieber via Cuis-dev wrote:
>> Hi everyone,
>>
>> I tried to implement the feature for MenuItemMorphs but failed. For some reasons #mouseButton1Up:localPosition: is not called when a modifier key (Shift, Control, Alt) is pressed. I tried to find it out myself but failed. Can anyone explain this behaviour?
>>
>> I found a feature which I did not know. When clicking a menu item morph with Alt and Shift pressed the menu item is duplicated and attached to the hand. Where is this implemented?
>>
>> Bernhard
>>
>>> Am 18.03.2023 um 17:11 schrieb Bernhard Pieber via Cuis-dev <cuis-dev at lists.cuis.st>:
>>>
>>> And because it sounded like fun I created a first. File it in and you can debug any PluggableButtonMorph action when you click it with the Shift key pressed.
>>>
>>> Things to do:
>>> - Do the same for the secondary action button.
>>> - Do the same for menu item selection.
>>> - Add a new prefProgramming preference.
>>>
>>> <5706-CuisCore-BernhardPieber-2023Mar18-16h18m-bp.001.cs.st>
>>
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
More information about the Cuis-dev
mailing list