<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I don't know if that's a bug or not. <br>
    </p>
    <p>How about using the methods in KeyboardEvent class?</p>
    <p>I see: #isArrowDown, #isArrowLeft, etc in 'testing' category.</p>
    <p><br>
    </p>
    <p>     Mariano<br>
    </p>
    <div class="moz-cite-prefix">El 2/8/24 a las 11:42, Mark Volkmann
      via Cuis-dev escribió:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFfRWnXxR0ti932LfadbKRcA+xqFikKRNGSSr1mszpuz4_1Qkw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">I have a custom morph that implements the
        keyStroke: method to capture keyboard events.
        <div>I then use the following get the Character that corresponds
          to the key value:</div>
        <div><br>
        </div>
        <div>char := Character codePoint: aKeyboardEvent keyValue.</div>
        <div><br>
          <div>When I press the left arrow key, keyValue is 28 and the
            Character is a left-pointing arrow.</div>
          <div>When I press the down arrow key, keyValue is 31 and the
            Character is a down-pointing arrow.</div>
          <div>So far, so good. However ...<br clear="all">
            When I press the right arrow key, keyValue is 29 and the
            Character is an up-pointing arrow.<br>
            <div>When I press the up arrow key, keyValue is 30 and the
              Character is a right-pointing arrow.</div>
            <div>Could this be a bug in the Character codePoint: method
              which uses <primitive: 170>?<br clear="all">
              <br class="gmail-Apple-interchange-newline">
            </div>
            <span class="gmail_signature_prefix">-- </span><br>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div dir="ltr">
                          <div><font face="arial, helvetica, sans-serif">R.
                              Mark Volkmann</font></div>
                          <div><span
                              style="font-size:12.8000001907349px"><font
                                face="arial, helvetica, sans-serif">Object
                                Computing, Inc.</font></span></div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
  </body>
</html>