[Cuis-dev] Control and alt keys in keyboard events
Mariano Montone
marianomontone at gmail.com
Fri Dec 13 12:32:43 PST 2024
I've checked keyboard events in Squeak Smalltalk, and command keys are
differentiated correctly. So I think this is not a VM problem, and can
be solved. But not easy for me.
HandMorph>>generateKeyboardEvent: looks relevant.
El 13/12/24 a las 16:22, H. Hirzel escribió:
> The issue that if you press a ctrl plus something combiation produces
>
> ctrl + alt + something
>
> also happens on MSWindows.
>
> For example when I hit
>
> ctrl + 2
>
> and the trace button is on I get what you see below, i.e ctrl+alt+$2
>
> The combination with alt+2 works. But sometimes not. It could be that
> it plays a role which window is in focus. I'll have to check.
>
> Cuis7.3
> latest update: #6897
> Running at
> :C:\Users\Hirzel\Documents\2024-12-13_nnnn\CuisImage\Cuis7.3-6895.image
>
> Package 2024-12-12_KeyStrokes successfully installed
> In: [world] -> ctrl+alt+$2
> In: [world] -> alt+$2
> Handled by: alt+$2 in WorldMorph: MessageSend(#open -> Browser)
>
>
> On 12/12/2024 5:45 pm, Mariano Montone via Cuis-dev wrote:
>> Hello,
>>
>> when I press Control key in a key combination, both
>> #controlKeyPressed and #commandAltKeyPressed return true.
>>
>> Is that the expected behavior? I would expect #commandAltKeyPressed
>> to return false since I've not pressed alt key.
>>
>> I'm on Linux.
>>
>> Thanks,
>>
>> Mariano
>>
More information about the Cuis-dev
mailing list