-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61685d2
commit 906e9e8
Showing
3 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Extension { #name : #HandMorph } | ||
|
||
{ #category : #'*OpenPonk-Spec' } | ||
HandMorph >> sendKeyboardEvent: anEvent [ | ||
|
||
OPDiagramRemoveFigureCommand lastEvent: anEvent. | ||
"Send the event to the morph currently holding the focus, or if none to | ||
the owner of the hand." | ||
^ self | ||
sendEvent: anEvent | ||
focus: self keyboardFocus | ||
clear: [self keyboardFocus: nil] | ||
] | ||
|
||
{ #category : #'*OpenPonk-Spec' } | ||
HandMorph >> sendMouseEvent: anEvent [ | ||
OPDiagramRemoveFigureCommand lastEvent: anEvent. | ||
"Send the event to the morph currently holding the focus, or if none to the owner of the hand." | ||
^self sendEvent: anEvent focus: self mouseFocus clear:[self mouseFocus: nil] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters