Skip to content

Commit

Permalink
polished cursorElement management
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Jan 3, 2024
1 parent 2e0db6b commit eaca084
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Album/AlbInfiniteEditorElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ AlbInfiniteEditorElement >> cursorColor: aColor [
{ #category : #'accessing - cursor' }
AlbInfiniteEditorElement >> cursorElement [

^ cursorElement startBlinkingTask; yourself
^ cursorElement
]

{ #category : #'private - accessing editor' }
Expand Down Expand Up @@ -361,14 +361,18 @@ AlbInfiniteEditorElement >> onExtentChanged [
AlbInfiniteEditorElement >> onGotFocus [

self editor onGotFocus.
self cursorElement ifNotNil: [ :c | c onGotFocus ]
self cursorElement onGotFocus.
self cursorElement hasParent ifFalse: [
self selecter
from: 0 to: 0;
select ]
]

{ #category : #'focus accessing' }
AlbInfiniteEditorElement >> onLostFocus [

self editor onLostFocus.
self cursorElement ifNotNil: [:ce | ce onLostFocus]
self cursorElement onLostFocus
]

{ #category : #'hooks - scrolling' }
Expand Down

0 comments on commit eaca084

Please sign in to comment.