<div dir="ltr">forward to vm-dev<div class="gmail_extra"><br><div class="gmail_quote">2015-05-14 21:34 GMT+02:00 Nicolai Hess <span dir="ltr">&lt;<a href="mailto:nicolaihess@web.de" target="_blank">nicolaihess@web.de</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>I added an issue:<br><br><a href="https://pharo.fogbugz.com/default.asp?15541" target="_blank">15541</a> windows vm does not distinguish between ctrl+a and ctrl+home<br><br></div>with a proposed solution:<br></div>add $a-1 to the utf32Code field of the event struct, if the keyevent is a keystroke and the ctrl flag is set<br><br></div>what do you think?<br><br><br></div></blockquote><div><br></div><div><br><br></div><div>this happens on squeak (vm: Win32 built on Aug 22 2013 10:20:54 Compiler: 3.4.4 ) too.<br></div><div>But the eventbuffer is different:<br></div><div>pharo ctrl+a/ctrl+home both report:<br><br></div><div><span id="BugEvents">#(2 TIMESTAMP 1 0 2 1 0 1)</span><br><br></div><div>squeak ctrl+a/ctrl+home both report:<br></div><div>#(2 TIMESTAMP 1 0 8 97 0 1)<br></div><div><br></div><div><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div></div><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2014-06-30 9:31 GMT+02:00 Guillermo Polito <span dir="ltr">&lt;<a href="mailto:guillermopolito@gmail.com" target="_blank">guillermopolito@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">There is an end key in many keyboards, but some others do not have it. Can you (or better, How would you) have ctrl+end in keyboards that doesn&#39;t?<div><br></div><div>Some VMs hardcoded that Ctrl+a = ctrl+home and Ctrl+d = Ctrl+end because that&#39;s how old terminals work... Now, why have hardcoded ctrl+a = ctrl + home, if you can just add a keybinding to ctrl + a?</div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 30, 2014 at 8:55 AM, Nicolai Hess <span dir="ltr">&lt;<a href="mailto:nicolaihess@web.de" target="_blank">nicolaihess@web.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-06-29 16:34 GMT+02:00 Denis Kudriashov <span dir="ltr">&lt;<a href="mailto:dionisiydk@gmail.com" target="_blank">dionisiydk@gmail.com</a>&gt;</span>:<div>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi<div><br></div><div><font color="#000000" face="arial, sans-serif">hasSpecialCTRLKeyValue was extracted by me when I hack keybindings to make ctrl+home and ctrl+end working. Like you I was very surprised by such keyboard events crappy state.</font></div>



<div><br></div></div></blockquote><div><br><br></div></div><div>So, having ctrl+end and ctrl+d working at the same time is not possible?<br><br><br></div><div><div><div><br><br><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-25 11:22 GMT+04:00 Nicolai Hess <span dir="ltr">&lt;<a href="mailto:nicolaihess@web.de" target="_blank">nicolaihess@web.de</a>&gt;</span>:<div>

<div><br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-06-25 8:58 GMT+02:00 Guillermo Polito <span dir="ltr">&lt;<a href="mailto:guillermopolito@gmail.com" target="_blank">guillermopolito@gmail.com</a>&gt;</span>:<div>



<div><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">There is a problem in the whole keyboard events: they treat keys as characters and vice versa. And that&#39;s not always true: <div>




 - the backspace key is a key, but currently the image interprets it as a character because we only use keypress events in general.</div>
<div> - the shift key is a key, and since current image does not use keyup nor keydown, we cannot know if JUST a shift is pressed normally.</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jun 25, 2014 at 8:53 AM, Sven Van Caekenberghe <span dir="ltr">&lt;<a href="mailto:sven@stfx.eu" target="_blank">sven@stfx.eu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I don&#39;t know anything about event handling, but I once had a look at Character constants, and found this:<br>





<br>
Character class&gt;&gt;#home<br>
  ^ self value: 1<br>
<br>
How about that ?? This is wrong IMHO, ASCII / Unicode value 1 is SOH (Start of header), sometimes typed as CTRL-A. And there are other strange constants like that there.<br>
<div><div><br>
On 25 Jun 2014, at 08:42, Tudor Girba &lt;<a href="mailto:tudor@tudorgirba.com" target="_blank">tudor@tudorgirba.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am on Windows, using Pharo 3.0, and I am trying to get the keybindings to work in Rubric using Windows convention (so, Ctrl instead of Cmd as a modifier),<br>
&gt;<br>
&gt; It worked reasonably well, but the problem is that somehow Ctrl+a is mapped to Ctrl+Home. The problem is not specific to Rubric as I can detect the same behavior in the regular PluggableTextMorph.<br>
&gt;<br>
&gt; Does anyone have an idea of where the problem comes from?<br>
&gt;<br>
&gt; Doru<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; <a href="http://www.tudorgirba.com" target="_blank">www.tudorgirba.com</a><br>
&gt;<br>
&gt; &quot;Every thing has its own flow&quot;<br>
<br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div></div></div><br><br></div><div class="gmail_extra">ctrl+a has the same strange behavior as ctrl+d<br>ctrl+a -&gt; ctrl+home<br>ctrl+d -&gt; ctrl+end<br><br></div><div class="gmail_extra">look at KeyboardEvent&gt;&gt;#hasSpecialCTRLKeyValue<br>




</div><div class="gmail_extra">I am not exactly sure why it is handled that way.<br>Replace the method with<br></div><div class="gmail_extra"><br>hasSpecialCTRLKeyValue<br>    ^ self controlKeyPressed and: [ keyValue &lt;= 26 ]<br>




<br></div><div class="gmail_extra">now, ctr+a and ctr+d working as expected.<br>But I don&#39;t know about the side-effects.<span><font color="#888888"><br><br><br>nicolai<br><br></font></span></div></div>


</blockquote></div></div></div><br></div>
</blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>