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

Mark dev at virtualmdj.com
Thu Dec 2 09:05:35 PST 2021


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)

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)

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211202/6315afc8/attachment.htm>


More information about the Cuis-dev mailing list