<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    <br>
    -------- Original Message --------
    <table class="moz-email-headers-table" border="0" cellpadding="0"
      cellspacing="0">
      <tbody>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
          <td>- Wed Dec 01 15:15:36 2021</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">X-Mozilla-Status:
          </th>
          <td>0001</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">X-Mozilla-Status2:
          </th>
          <td>00800000</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">X-Mozilla-Keys:
          </th>
          <td><br>
          </td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Message-ID:
          </th>
          <td><a class="moz-txt-link-rfc2396E" href="mailto:61A7BBC5.6080903@jvuletich.org"><61A7BBC5.6080903@jvuletich.org></a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
          <td>Wed, 01 Dec 2021 15:15:33 -0300</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
          <td>Juan Vuletich <a class="moz-txt-link-rfc2396E" href="mailto:juan@jvuletich.org"><juan@jvuletich.org></a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">User-Agent:
          </th>
          <td>Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US;
            rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">MIME-Version:
          </th>
          <td>1.0</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
          <td>Discussion of Cuis Smalltalk
            <a class="moz-txt-link-rfc2396E" href="mailto:cuis-dev@lists.cuis.st"><cuis-dev@lists.cuis.st></a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">CC: </th>
          <td>Gerald Klix <a class="moz-txt-link-rfc2396E" href="mailto:cuis.01@klix.ch"><cuis.01@klix.ch></a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th>
          <td>Re: [Cuis-dev] Mac Option Key Support in the VM</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">References:
          </th>
          <td><a class="moz-txt-link-rfc2396E" href="mailto:25c3d8bf-368a-cfaa-bebf-eca0e5ad0f27@klix.ch"><25c3d8bf-368a-cfaa-bebf-eca0e5ad0f27@klix.ch></a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">In-Reply-To:
          </th>
          <td><a class="moz-txt-link-rfc2396E" href="mailto:25c3d8bf-368a-cfaa-bebf-eca0e5ad0f27@klix.ch"><25c3d8bf-368a-cfaa-bebf-eca0e5ad0f27@klix.ch></a></td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Content-Type:
          </th>
          <td>text/plain; charset=ISO-8859-1; format=flowed</td>
        </tr>
        <tr>
          <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Content-Transfer-Encoding:
          </th>
          <td>8bit</td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>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
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich

</pre>
  </body>
</html>