Skip to content

Commit

Permalink
Update src/Morphic-Core/KeyboardEvent.class.st
Browse files Browse the repository at this point in the history
Co-Authored-By: pavel-krivanek <pavel.krivanek@gmail.com>
  • Loading branch information
jecisc and pavel-krivanek committed Jan 4, 2019
1 parent e9c57ad commit a149bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Morphic-Core/KeyboardEvent.class.st
Expand Up @@ -109,7 +109,7 @@ KeyboardEvent >> keyValue [
KeyboardEvent >> modifiedCharacter [
self flag: #hack.
"Hack me. When Ctrl is pressed, the key ascii value is not right and we have to do something ugly"
^(self hasSpecialCTRLKeyValue and: [ (#(MacOSX Windows) includes: Smalltalk os current platformFamily) ])
^(self hasSpecialCTRLKeyValue and: [ (#(MacOSX Windows) includes: Smalltalk os platformFamily) ])
ifTrue: [ (self keyValue + $a asciiValue - 1) asCharacter ]
ifFalse: [
Smalltalk os isWindows
Expand Down

0 comments on commit a149bf9

Please sign in to comment.