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

Juan Vuletich juan at jvuletich.org
Wed Dec 1 11:18:14 PST 2021



-------- Original Message --------
From: 	- Wed Dec 01 15:15:36 2021
X-Mozilla-Status: 	0001
X-Mozilla-Status2: 	00800000
X-Mozilla-Keys: 	
Message-ID: 	<61A7BBC5.6080903 at jvuletich.org>
Date: 	Wed, 01 Dec 2021 15:15:33 -0300
From: 	Juan Vuletich <juan at jvuletich.org>
User-Agent: 	Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; 
rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20
MIME-Version: 	1.0
To: 	Discussion of Cuis Smalltalk <cuis-dev at lists.cuis.st>
CC: 	Gerald Klix <cuis.01 at klix.ch>
Subject: 	Re: [Cuis-dev] Mac Option Key Support in the VM
References: 	<25c3d8bf-368a-cfaa-bebf-eca0e5ad0f27 at klix.ch>
In-Reply-To: 	<25c3d8bf-368a-cfaa-bebf-eca0e5ad0f27 at klix.ch>
Content-Type: 	text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 	8bit



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

==== option down - option up ==== (58 for left option. 61 for right option)
keyDown macRomanCode:58-:- unicodeCodePoint:0-- modifiers:4
[macOption]#(2 28297 58 1 4 0 0 1)
keyUp macRomanCode:58-:- unicodeCodePoint:0-- modifiers:4 [macOption]#(2
28372 58 2 4 0 0 1)

==== option down - a down - a up - option up ==== (58 for left option.
61 for right option)
keyDown macRomanCode:58-:- unicodeCodePoint:0-- modifiers:4
[macOption]#(2 39836 58 1 4 0 0 1)
keyDown macRomanCode:0-- unicodeCodePoint:0-- modifiers:4 [macOption]#(2
40732 0 1 4 0 0 1)
keystroke macRomanCode:229-Â- unicodeCodePoint:229-å- modifiers:4
[macOption]#(2 40732 229 0 4 229 0 1)
keyUp macRomanCode:0-- unicodeCodePoint:0-- modifiers:4 [macOption]#(2
40882 0 2 4 0 0 1)
keyUp macRomanCode:58-:- unicodeCodePoint:0-- modifiers:4 [macOption]#(2
41633 58 2 4 0 0 1)



==== control down - control up ====
keyDown macRomanCode:59-;- unicodeCodePoint:0-- modifiers:2 [control]#(2
604158 59 1 2 0 0 1)
keyUp macRomanCode:59-;- unicodeCodePoint:0-- modifiers:2 [control]#(2
604847 59 2 2 0 0 1)

==== control down - a down - a up - control up ====
keyDown macRomanCode:59-;- unicodeCodePoint:0-- modifiers:2 [control]#(2
608941 59 1 2 0 0 1)
keyDown macRomanCode:0-- unicodeCodePoint:0-- modifiers:2 [control]#(2
608957 0 1 2 0 0 1)
keystroke macRomanCode:1-- unicodeCodePoint:1-- modifiers:2 [control]#(2
608957 1 0 2 1 0 1)
keyUp macRomanCode:0-- unicodeCodePoint:0-- modifiers:2 [control]#(2
609226 0 2 2 0 0 1)
keyUp macRomanCode:59-;- unicodeCodePoint:0-- modifiers:2 [control]#(2
609826 59 2 2 0 0 1)



==== command down - command up ==== (55 for left command, 54 for right
command)
keyDown macRomanCode:55-7- unicodeCodePoint:0-- modifiers:8
[commandWinAlt]#(2 722491 55 1 8 0 0 1)
keyUp macRomanCode:55-7- unicodeCodePoint:0-- modifiers:8
[commandWinAlt]#(2 722731 55 2 8 0 0 1)

==== command down - a down - a up - command up ==== (55 for left
command, 54 for right command)
keyDown macRomanCode:55-7- unicodeCodePoint:0-- modifiers:8
[commandWinAlt]#(2 724546 55 1 8 0 0 1)
keyDown macRomanCode:0-- unicodeCodePoint:0-- modifiers:8
[commandWinAlt]#(2 724875 0 1 8 0 0 1)
keystroke macRomanCode:97-a- unicodeCodePoint:97-a- modifiers:8
[commandWinAlt]#(2 724875 97 0 8 97 0 1)
keyUp macRomanCode:0-- unicodeCodePoint:0-- modifiers:8
[commandWinAlt]#(2 725026 0 2 8 0 0 1)
keyUp macRomanCode:55-7- unicodeCodePoint:0-- modifiers:8
[commandWinAlt]#(2 725624 55 2 8 0 0 1)

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich


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


More information about the Cuis-dev mailing list