<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>Bert.<br><br>Thanks. <br><br>You mentioned that&nbsp;<i> ".. we never took the time to make all platforms present key  codes uniformly. (We could still do it: up/down events are almost  completely unused, partly because of this problem)...."<br></i><br>This sounds like fun. I will poke around and try to understand the sub-system and get back to the list.<br><br>Cheers.<br><br><br>tty.<br><br><br><div id="1"><br>---- On Fri, 14 Feb 2014 02:33:45 -0800 <b>Bert Freudenberg&lt;bert@freudenbergs.de&gt;</b> wrote ---- <br></div><br><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px; margin:0 0 0 5px"> On 14.02.2014, at 00:34, gettimothy &lt;<a subj="" mailid="gettimothy%40zoho.com" href="mailto:gettimothy@zoho.com" target="_blank">gettimothy@zoho.com</a>&gt; wrote: <br> <br>&gt; Hi All, <br>&gt;  <br>&gt; I got pure Morphic MouseEvents forwarded just fine (thanks to your help on the bit-fiddling)  and the translation is good  enough to pop up a menu from the top menu bar. <br> <br>Nice! :) <br> <br>&gt; Next up is KeyboardEvents and at first glance it looks a bit daunting. <br> <br>Key stroke events are pretty simple: you just put the ASCII code into one field and the Unicode into another. This is the same on pretty much any platform now. <br> <br>But for full emulation you also need to emulate key down and key up events. Those are platform-specific, each has their own raw key codes. Unfortunately we never took the time to make all platforms present key codes uniformly. (We could still do it: up/down events are almost completely unused, partly because of this problem). <br> <br>If you want to emulate up/down events, I think your best bet will be to emulate a Windows VM. Because on Windows, the keycodes are based on ASCII - the 'a' key has key code 65. This must be independent on whether shift is pressed or not, because it refers to the physical key. If you wanted to emulate Mac you'ld have to generate Mac key codes (A=0, S=1, D=2, F=3, etc). Unix/X11 might be easier too, I think it uses X11 keysyms, but IIRC the Unix VM does give different key codes for a and shift-a, which is wrong. <br> <br>- Bert - <br> <br></blockquote><br></div></body></html>