Skip to content

Commit

Permalink
Merge pull request #15373 from MarcusDenker/15372-backport-Pharo11-sa…
Browse files Browse the repository at this point in the history
…fer-morph-access-in-NECMenuMorphmouseDown-14356

15372-backport-Pharo11-safer-morph-access-in-NECMenuMorphmouseDown-14356
  • Loading branch information
jecisc committed Nov 15, 2023
2 parents b3af3f2 + ba11cc8 commit f3b81e5
Showing 1 changed file with 7 additions and 3 deletions.
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

0 comments on commit f3b81e5

Please sign in to comment.