On 27 Aug 2014, at 9:19 , Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com> wrote:
Of course, similar code and change in Morphic, see bottom of change report http://lists.squeakfoundation.org/pipermail/squeak-dev/2011-August/160926.ht... and follow links.
This came after http://lists.squeakfoundation.org/pipermail/squeak-dev/2011-August/160923.ht...
But then, there were some complaints of English keyboard users... http://lists.squeakfoundation.org/pipermail/squeak-dev/2011-August/160968.ht...
and then later http://forum.world.st/Re-squeak-dev-shift-enclose-broken-in-trunk-td4543316....
I don't remember how the issue ended, or even if it properly ended... (That's where an issue tracker should shine, but Squeak one is not really used/maintained).
Thatâs not really a bug in the VM or anything, but a lossy translation from Ctrl -> Shift + Alt in the image⦠Only the modifier keys are ⦠modified, while the key character is left unchanged. Thus, when one uses Ctrl + â (on those layouts where " is its shifted value), the = â ifTrue: [:= "] part is a hack around that, hardcoded to a single layout. When using Shift + â , the VM return the keyValue of ", and no translation is needed. My 2C: Remove the workarounds, as well as the option of translating Ctrl -> Shift + Alt. In order for it to work *properly* without external hacks, youâd need to implement all keyboard layouts image side, and translate the key character as well as modifier keys. The alternative would be to change the VM to include the properly shifted character in each keyboard event, which seems a bit excessive for supporting such a feature. (If such support functions even exist) Cheers, Henry