Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15372-backport-Pharo11-safer-morph-access-in-NECMenuMorphmouseDown-14356 #15373

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/NECompletion-Morphic/NECMenuMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,13 @@ NECMenuMorph >> mouseDown: evt [
super mouseDown: evt.
evt wasHandled: false.
self flag: #pharoFixMe "ugly hack".
engine editor morph owner owner
takeKeyboardFocus;
handleMouseDown: evt.
engine editor morph ifNotNil: [ :aMorph |
aMorph owner ifNotNil: [ :anOwner |
anOwner owner ifNotNil: [ :ownersOwner |
ownersOwner
takeKeyboardFocus;
handleMouseDown: evt.
] ] ].
self close
]

Expand Down