In TextEditor>>initializeShiftCmdKeyShortcuts the shortcuts are
set in a way that it creates three handlers for each shortcut to make it
work xD.<br><br>The main difference here is that in Linux, ubuntu 11.04 the Ctrl+a comes with the right keyCharacter, but in Windows and MacOS it does not :(. We've tested that on host OSs with friends :).<br><br>I've captured the problem I'm experimenting so far and wrote down an ugly hack in this method.<br>
<br>
KeyboardEvent>>modifiedCharacter<br>
self flag: #hack.<br>
"Hack me. When Ctrl is pressed, the key ascii value is not right and we have to do this shit"<br>
^(self controlKeyPressed and: [ (#(MacOSX Windows) includes:
Smalltalk os current platformFamily) and: [ keyValue <= 26 ]])<br>
ifTrue: [ (self keyValue + $a asciiValue - 1) asCharacter ] <br>
ifFalse: [ self keyCharacter ]<br>
<br><br>But I'd like to replace that by:<br><br>
KeyboardEvent>>modifiedCharacter<br> ^self keyCharacter<br><br>:P<br><br><br>Are there any technical reasons why the Sensor behaves like that? How difficult is it to make it work the same for all three vms?<br>
<br>Thanks!<br>Guille<br>