Skip to content
Permalink
Browse files

Update src/Morphic-Core/KeyboardEvent.class.st

Co-Authored-By: pavel-krivanek <pavel.krivanek@gmail.com>
  • Loading branch information
jecisc and pavel-krivanek committed Jan 4, 2019
1 parent e9c57ad commit a149bf92ccea84d48588a3a5d40c0b48170cfbe5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Morphic-Core/KeyboardEvent.class.st
@@ -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

0 comments on commit a149bf9

Please sign in to comment.
You can’t perform that action at this time.