[Cuis-dev] Mac Option Key Support in the VM
Gerald Klix
cuis.01 at klix.ch
Wed Dec 1 14:08:20 PST 2021
On 12/1/21 8:55 PM, Gerald Klix via Cuis-dev wrote:
> On 12/1/21 8:33 PM, Juan Vuletich via Cuis-dev wrote:
>> On 12/1/2021 2:23 PM, Gerald Klix via Cuis-dev wrote:
>>> Hi all,
>>>
>>> It's fairly easy to add a reaction to the VM for the Windows-key
>>> on X11, but I don't know which key code the Option-key on Mac
>>> reports. I have no (working) Mac at hand and the Quartz-driver
>>> passes the key-code unmodified; so nothing can
>>> be gleaned from the source.
>>>
>>> Can someone with a Mac at hand do `Sensor test`
>>> and tell me, which key code the VM reports for
>>> the option key (Exit this trap by pressing the x-key).
>>>
>>>
>>> Thanks and Best Regards,
>>>
>>> Gerald
>>
>> Hi Gerald,
>>
>> These are the results on my Mac. Tried each ctrl / option / command by
>> itself, and as a modifier of [a]. (Note, my mac keyboard doesn't have
>> a control key on the right side of the spacebar.)
>>
>> Hope this helps.
>>
>> ---------
>> Transcript
>>
....
>> [commandWinAlt]#(2 725624 55 2 8 0 0 1)
>>
>
> Thanks a lot!
> All codes on X11 are different from the ones the Mac version reports.
> Besides: Some 10 minutes ago, I discovered that the X11-driver
> already maps the meta-keys (to key-code 249 and 248),
> so I used that mapping.
>
> Obviously nobody reacts on pure modifier key-presses.
>
> For some reason EventSensor>>#test did work on the very first trial,
> but EventSensor>>#primMouseButtons' answer does not have
> the options-bit set. I suppose this gets deleted somewhere
> in the mouse button mapping stuff.
>
>
> Thanks again,
>
> Gerald
Got it working for the left Windows-key.
Had to hack the X11-modifier to Squeak-modifier
translation a bit.
Tomorrow I will test with a keyboard with two
Windows-keys.
Good night,
Gerald
PS: The X11 driver maps Alt-Ctrl to the Mac options key.
More information about the Cuis-dev
mailing list