<p>The <code>keysym</code> is produced by <code>XLookupString</code>.</p>
<p><a href="https://linux.die.net/man/3/xlookupstring" rel="nofollow">https://linux.die.net/man/3/xlookupstring</a> sounds clear to me: it should honour the shift for the <code>Keysym</code> output, and map to ASCII for the ASCII buffer output...</p>
<blockquote>
<p>The XLookupString function translates a key event to a KeySym and a string. The KeySym is obtained by using the standard interpretation of the Shift, Lock, group, and numlock modifiers as defined in the X Protocol specification. If the KeySym has been rebound (see XRebindKeysym), the bound string will be stored in the buffer. Otherwise, the KeySym is mapped, if possible, to an ISO Latin-1 character or (if the Control modifier is on) to an ASCII control character, and that character is stored in the buffer. XLookupString returns the number of characters that are stored in the buffer.</p>
</blockquote>
<p>Does it work like advertised? We'd better activate <code>DEBUG_KEYBOARD_EVENTS</code>, but currently we print address of the keysym rather than the keysym!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/396?email_source=notifications&email_token=AIJPEW4HFNSKPXW2RNSX7W3PZZ54VA5CNFSM4HP46HZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXKL7FI#issuecomment-500481941">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW3HWYQHVNPJCIT22E3PZZ54VANCNFSM4HP46HZA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AIJPEW5H5CPD4VMEX3DJMRDPZZ54VA5CNFSM4HP46HZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXKL7FI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/396?email_source=notifications\u0026email_token=AIJPEW4HFNSKPXW2RNSX7W3PZZ54VA5CNFSM4HP46HZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXKL7FI#issuecomment-500481941",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/396?email_source=notifications\u0026email_token=AIJPEW4HFNSKPXW2RNSX7W3PZZ54VA5CNFSM4HP46HZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXKL7FI#issuecomment-500481941",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>