Skip to content

Commit

Permalink
tests: ensure that the hand is set when simulating events
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Apr 20, 2021
1 parent 3bac95f commit d4c1340
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/Sandblocks-Core/SBTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ SBTest class >> keyboardEvent: aCharacter [
{ #category : #'as yet unclassified' }
SBTest class >> keyboardEvent: aCharacter shift: aBoolean command: anotherBoolean [

^ KeyboardEvent new setType: #keystroke buttons: ((aBoolean ifTrue: [8] ifFalse: [0]) bitOr: (anotherBoolean ifTrue: [64] ifFalse: [0])) position: 0 @ 0 keyValue: aCharacter hand: nil stamp: nil
^ KeyboardEvent new
setType: #keystroke
buttons: ((aBoolean ifTrue: [8] ifFalse: [0]) bitOr: (anotherBoolean ifTrue: [64] ifFalse: [0]))
position: 0 @ 0
keyValue: aCharacter
hand: ActiveHand
stamp: nil
]

{ #category : #'as yet unclassified' }
Expand Down Expand Up @@ -57,7 +63,7 @@ SBTest class >> mouseEventAt: aPoint [
setType: #mouseDown
position: 0 @ 0
buttons: MouseEvent blueButton
hand: nil
hand: ActiveHand
]

{ #category : #'as yet unclassified' }
Expand Down

0 comments on commit d4c1340

Please sign in to comment.