<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Christoph.<div><br></div><div>> <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size: 16px">When pressing something like Ctrl + ArrowLeft, the keystroke event no longer answers true for #</span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size: 16px">commandKeyPressed but for #optionKeyPressed instead. </span></div><div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size: 16px"><br></span></div><div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size: 16px">Could you be more specific? With the current default settings on Linux and Windows (see EventSensor class >> #startUp), you should get both #controlKeyPressed and #commandKeyPressed for [CTRL]+[ArrowLeft]. When you press [ALT]+[ArrowLeft], wenn you get true for #commandKeyPressed and #optionKeyPressed.</span></div><div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size: 16px"><br></span></div><div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size: 16px">Could you understand my explanations in KeyboardEvent >> #checkCommandKey regarding cross-platform compatibility? If not, what is missing?</span></div><div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size: 16px"><br></span></div><div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size: 16px">Best,</span></div><div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size: 16px">Marcel</span></div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 25.04.2021 19:59:00 schrieb Thiede, Christoph <christoph.thiede@student.hpi.uni-potsdam.de>:</p><div style="font-family:Arial,Helvetica,sans-serif">
<div id="divtagdefaultwrapper" style="font-size: 12pt;color: #000000;font-family: Calibri,Helvetica,sans-serif" dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt;color: rgb(0, 0, 0);font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols" dir="ltr">
<p>Hi Marcel,</p>
<p><br>
</p>
<p>great idea, thanks for your work. It works fine on Windows as well as WSL/Ubuntu/VvXsrv for all my usual workflows. :-)</p>
<p><br>
</p>
<p>I noted some "breaking change", but actually it is a fix: When pressing something like Ctrl + ArrowLeft, the keystroke event no longer answers true for #<span>commandKeyPressed but for #<span>optionKeyPressed instead. This makes a workaround in WindowAcrobatics
 [1] superfluous.</span></span></p>
<p><br>
</p>
<p>The <span>KeyboardExerciser is also a great tool. It gives a good overview of what is still left to do for the input mapping - that is (on Windows):</span></p>
<p><span><br>
</span></p>
<p></p>
<ul style="margin-bottom: 0px; margin-top: 0px;">
<li>Ctrl + (Insert | Home | End | PageUp | PageDown) is mapped incorrectly to Ctrl + (A | D | L | ...)</li><li>Ctrl + Alt + <letter> is not recorded</li><li>Ctrl + Shift + Space is not recorded</li><li>In my image, Shift + Alt + U does not work - is this a strange bug or do I have an unknown global keyboard filter?</li></ul>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt;color: rgb(0, 0, 0);font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols">
<div name="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif;font-size: ;margin: 0">
<div>
<div class="_rp_T4" id="Item.MessagePartBody">
<div class="_rp_U4 ms-font-weight-regular ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass" id="Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="divtagdefaultwrapper"><span style="font-family: Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="Signature">
<div style="margin:0px"><span style="">
<div><span style="font-size: 12pt;color: black"><span style="font-size: 12pt"><a href="http://www.hpi.de/" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font size="2"><span id="LPlnk909538"><font color="#757B80"></font></span></font></a></span></span></div>
</span></div>
</div>
</span></div>
</div>
</div>
</div>
</div>
<div><span style="font-size: 10pt;color: #808080"></span></div>
</div>
</div>
</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt;color: rgb(0, 0, 0);font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols" dir="ltr">
<br>
</div>
And here is some - though minor - notes about the exerciser tool:</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt;color: rgb(0, 0, 0);font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols" dir="ltr">
<br>
</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt;color: rgb(0, 0, 0);font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols" dir="ltr">
<div>
<ul style="margin-bottom: 0px; margin-top: 0px;">
<li>The "<span>Move your mouse cursor" instruction message does not fit into the morph in my image and is not word-wrapped but misses a draw invalidation instead. Also, it is not multilanguage-safe, but since it is in the "Demo" system category, I guess this
 is okay. :D</span></li></ul>
<div><br>
</div>
</div>
<div>Best,</div>
<div>Christoph</div>
<div><br>
</div>
<div>[1] <a href="https://github.com/hpi-swa-teaching/WindowAcrobatics/blob/3398eb951d674360a37fe422710340e53a69bd84/packages/WindowAcrobatics-Core.package/WAHandler.class/instance/handle..st#L5" class="OWAAutoLink" id="LPlnk815248" previewremoved="true">https://github.com/hpi-swa-teaching/WindowAcrobatics/blob/3398eb951d674360a37fe422710340e53a69bd84/packages/WindowAcrobatics-Core.package/WAHandler.class/instance/handle..st#L5</a></div>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif;color: #000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com><br>
<b>Gesendet:</b> Samstag, 24. April 2021 20:58 Uhr<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] Please try it out | Fixing the input mapping for keystroke events</span>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hi Marcel,</div>
<div>I tried it on macos and windows, no problem so far.</div>
<div>I had some fun with the exercizer, some combinations are surprising indeed...<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le ven. 23 avr. 2021 à 18:23, Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</a>> a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex;min-width: 500px">
<div id="gmail-m_-268511175358133923__MailbirdStyleContent" dir="ltr" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0);text-align: left">
Hi all!
<div><br>
</div>
<div>Please find attached an updated changeset with a "KeyboardExerciser" to help you test and inspect the incoming keyboard events. You can find it also in the parts bin nearby the "ClickExerciser".</div>
<div><br>
</div>
<div><img naturalheight="239" naturalwidth="834" id="gmail-m_-268511175358133923eb35c686-9e75-46ed-8fe0-d3502938a35e" width="486" height="139" style="user-select: none;" src="cid:179053dbf6dcb971f161"></img><br>
</div>
<div>The visuals are supposed to look platform-specific. However, the event data contains information to make your application work across platforms. See KeyboardEvent >> #checkCommandKey for more explanations.</div>
<div><br>
</div>
<div>Try [CTRL]+[C] for keyStroke, keyDown, and keyUp.</div>
<div><br>
</div>
<div>Note that the visuals might not look right for keyUp and keyDown events due to missing lookup tables for the raw, platform-specific key codes. On my machine, for example, [,] and [.] and [-] look odd:</div>
<div><br>
</div>
<div><img naturalheight="67" naturalwidth="569" id="gmail-m_-26851117535813392355aaed9c-92a9-4dd3-855f-beef6ebfddf9" width="328" height="38" style="user-select: none;" src="cid:179053dbf6ecb971f162"></img><br>
</div>
<div><br>
</div>
<div>Nothing to worry about because all keyboard shortcuts in Squeak use keyStroke events at the moment.</div>
<div><br>
</div>
<div>Best,</div>
<div>Marcel</div>
<div></div>
<blockquote type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
<p style="color:rgb(170,170,170); margin-top:10px">Am 22.04.2021 10:41:15 schrieb Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de" target="_blank">marcel.taeumel@hpi.de</a>>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">
<div id="gmail-m_-268511175358133923__MailbirdStyleContent" dir="ltr" style="font-size: 10pt;font-family: Arial;color: rgb(0,0,0);text-align: left">
Hi all!
<div></div>
<div><br>
</div>
<div>Please find attached a changeset that improves the cross-platform base for keystroke events. Please try it out and take a look at it. Report issues ASAP so that I can merge it into Trunk soon.</div>
<div><br>
</div>
<div>Thanks to Tom (tobe), the new promising idea is to replace the existing attempt:</div>
<div><br>
</div>
<div>Duplicate all control and alt keys</div>
<div>Duplicate control and alt keys</div>
<div>Swap control and alt keys</div>
<div><br>
</div>
<div>With the following preferences:</div>
<div><br>
</div>
<div>[X] Map ASCII control characters to printable characters<br>
</div>
<div> - Default is TRUE</div>
<div> - Only affects events that have the CONTROL modifier set (e.g. CTRL+J)</div>
<div> - Rather application-specific than platform-specific</div>
<div>[X] Map CONTROL keys to COMMAND keys<br>
</div>
<div> - Checked at image start-up</div>
<div> - TRUE on Windows/Linux</div>
<div> - FALSE on macOS</div>
<div>[X] M<span style="font-size: 10pt">ap ALT keys to OPTION keys</span></div>
<div> - Checked at image start-up</div>
<div> - TRUE on Windows/Linux</div>
<div> - FALSE on macOS (bc. ALT==CMD on recent Linux/Windows VMs)</div>
<div><br>
</div>
<div>Please take a look at KeyboardEvent >> #checkCommandKey to learn about the fundamental trade-off we have solved.</div>
<div><br>
</div>
<div>Please try out your preferred applications. Feel free to add logging to HandMorph >> #logEvent: for more convenient testing:</div>
<div><br>
</div>
<div>
<div><span style="font-size: 13.3333px">(anEvent isKeyboard and: [anEvent isKeystroke])</span></div>
<div><span style="font-size: 13.3333px">   ifTrue: [</span>Transcript showln: anEvent].</div>
</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>Best,</div>
<div>Marcel (and Tom)</div>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div></blockquote></div>