<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>A short overview:<br><br>With Ctrl-Key pressed,<br><br>some keyboard events don&#39;t generate smalltalk keystrokes (EventKeyChar)<br></div>ctrl+tab, ctrl+1, ctrl+2, ..., ctrl+0, ctrl+Tab, ctrl+m<br></div><br>for some keyboard events there are only key down and key up events (from windows) but the vm &quot;generates&quot; a keypress (EventKeyChar) event<br></div>ctrl+Home, ctrl+End, ctrl+PageUp, ...<br></div><br>But the key value , char code and ctrl flag for this generated events, make them undistinguishable from other ctrl+key shortcuts<br></div>ctrl+a = ctrl+Home, ctrl+d = ctrl+End, ctrl+k=ctrl+PageUp,...<br><br></div><div>And one key (ctrl+Enter) creates two EventKeyChar events one &quot;normal&quot; and one that is generated from the vm<br>one with keyvalue 10 and one with 13.<br></div><div><br></div><div></div>And the keycode for char like &quot;a&quot;,&quot;b&quot;, ..., are different if you they are typed with or without ctrl-key<br></div><br>just key &quot;a&quot;:<br></div>keycode:<br>65 (keydown event)<br></div>97 (keyvalue/charcode event) (65 if you press shift key)<br></div>65 (keyup event)<br><br></div>with ctrl key pressed:<br>keycode<br>65 (keydown event)<br>1 (keyvalue/charcode event)<br>65 (keyup event)<br><br><br></div><div>I would like to change this, that means:<br><br></div><div>generate EventKeyChar events for<br></div><div>ctrl+1, ctrl+2, ..., ctrl+Tab, ctrl+m<br></div><div><br>remove the double key event for ctrl+Enter<br></div><div><br></div><div>and adopt the behavior of the linux vm, for keyValue, charCode values for events like<br></div><div>ctrl+a, ctrl+home, ...<br><br></div></div>for example, the linux vm generates event buffer values:<br></div><div>#(2 7329656 1 0 2 65 0 1) for  ctrl+a  (keyValue 1/charCode 65)<br></div><div>but<br>#(2 7329656 1 0 2 1 0 1) for  ctrl+home  (keyValue 1/charCode 1)</div><br></div></div>this may need some changes on the image side. For example, in Pharo we<br></div>have some special handling that adds &quot;96&quot; to the keyValue for keystrokes with ctrl-key).<br><br></div>What do you think?<br><br><br><br></div>nicolai<br><div><br></div></div>