[Cuis-dev] Mac Option Key Support in the VM

Gerald Klix cuis.01 at klix.ch
Thu Dec 2 10:51:35 PST 2021


Thanks Mark,

On 12/2/21 6:05 PM, Mark wrote:
> Hey Gerald,
> 
> Hopefully, this will help (I added bold)
> 
> Left-hand side of MacBook Pro keyboard:
> keyDown macRomanCode:56-8- unicodeCodePoint:0-- modifiers:1 [shift]#(2 120019 56 1 1 0 0 1)
> keyUp macRomanCode:56-8- unicodeCodePoint:0-- modifiers:1 [shift]#(2 120426 56 2 1 0 0 1)
> keyDown macRomanCode:59-;- unicodeCodePoint:0-- modifiers:2 [control]#(2 122944 59 1 2 0 0 1)
> keyUp macRomanCode:59-;- unicodeCodePoint:0-- modifiers:2 [control]#(2 123441 59 2 2 0 0 1)
> keyDown macRomanCode:58-:- unicodeCodePoint:0-- modifiers:4 [macOption]#(2 124639 58 1 4 0 0 1)
> keyUp macRomanCode:58-:- unicodeCodePoint:0-- modifiers:4 [macOption]#(2 125041 58 2 4 0 0 1)
> keyDown macRomanCode:55-7- unicodeCodePoint:0-- modifiers:8 [commandWinAlt]#(2 126704 55 1 8 0 0 1)
> keyUp macRomanCode:55-7- unicodeCodePoint:0-- modifiers:8 [commandWinAlt]#(2 126994 55 2 8 0 0 1)
> 
> The “fn” key:
> keyDown macRomanCode:63-?- unicodeCodePoint:0-- modifiers:0#(2 136649 63 1 0 0 0 1)
> keyUp macRomanCode:63-?- unicodeCodePoint:0-- modifiers:0#(2 136908 63 2 0 0 0 1)
Interesting!
Does this mean the OSX-VM -- the Quartz display driver --
handles function keys?
Those are deliberately ignored by the X11-driver.
If yes, they should added to the X11 driver (and if
necessary to the Windows- and the
frame-buffer driver).

> 
> Right-hand side of MacBook Pro keyboard:
> keyDown macRomanCode:54-6- unicodeCodePoint:0-- modifiers:8 [commandWinAlt]#(2 129942 54 1 8 0 0 1)
> keyUp macRomanCode:54-6- unicodeCodePoint:0-- modifiers:8 [commandWinAlt]#(2 130280 54 2 8 0 0 1)
> keyDown macRomanCode:61-=- unicodeCodePoint:0-- modifiers:4 [macOption]#(2 131409 61 1 4 0 0 1)
> keyUp macRomanCode:61-=- unicodeCodePoint:0-- modifiers:4 [macOption]#(2 131748 61 2 4 0 0 1)
> keyDown macRomanCode:60-<- unicodeCodePoint:0-- modifiers:1 [shift]#(2 133259 60 1 1 0 0 1)
> keyUp macRomanCode:60-<- unicodeCodePoint:0-- modifiers:1 [shift]#(2 133531 60 2 1 0 0 1)
As I reported in a previous E-Mail, the macRomanCodes reported by the 
X11-driver are completely different. Maybe I should ask for the reason,
on the VM-Dev list.
> 
> Thanks,
> 
> 	— Mark
> 
>> On Dec 1, 2021, at 9:23 AM, Gerald Klix via Cuis-dev <cuis-dev at lists.cuis.st> 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
>> -- 
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
> 
> 

Best Regards,

Gerald


More information about the Cuis-dev mailing list