Skip to content

Commit

Permalink
MouseDownEvent on an text editor consumed if the result is a #request…
Browse files Browse the repository at this point in the history
…Focus sent
  • Loading branch information
plantec committed Jan 29, 2025
1 parent 26257a7 commit 6892f7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Album/AlbTextEditorMouseHandler.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ AlbTextEditorMouseHandler >> mouseDownEvent: anEvent [
ifFalse: [
element hasFocus ifTrue: [ editor deselecter all deselect ] ].
aNavigator moveToScreenPosition: aScreenPosition.
element isEnabled ifTrue: [ element requestFocus ].
element isEnabled ifTrue: [
element requestFocus.
anEvent consume ].
aNavigator apply.

anEvent sendTo: element
]

0 comments on commit 6892f7c

Please sign in to comment.