Skip to content

Commit

Permalink
core: deselectTextMorph now knows where focus went
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Aug 26, 2022
1 parent 27e2ffd commit 2b4049c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ SBBlock >> deleteCommandFor: aBlock [
]

{ #category : #callbacks }
SBBlock >> deselectedTextMorph: aMorph [
SBBlock >> deselectedTextMorph: aMorph for: aNewPosition [


]
Expand Down
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBBlockCursor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ SBBlockCursor >> cursorPosition: aPosition explicitMove: aBoolean axis: aSymbol
cursorPosition := SBCursorNone new.
previousCursor ifNotNil: [:c |
c block ifNotNil: [c block invalidRect: c bounds].
c leaveIn: self editor with: self].
c leaveIn: self editor with: self for: aPosition].
cursorPosition := aPosition.
cursorPosition ifNotNil: [:position |
position enterWith: self.
Expand Down
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBCursorInsert.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ SBCursorInsert >> isJumpPoint [
]

{ #category : #'as yet unclassified' }
SBCursorInsert >> leaveIn: anEditor with: aCursor [
SBCursorInsert >> leaveIn: anEditor with: aCursor for: aNewPosition [

aCursor showLabel: nil.
aCursor editor suggestionMenu delete
Expand Down
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBCursorMultiSelect.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SBCursorMultiSelect >> isMultiSelect [
]

{ #category : #'as yet unclassified' }
SBCursorMultiSelect >> leaveIn: anEditor with: aCursor [
SBCursorMultiSelect >> leaveIn: anEditor with: aCursor for: aNewPosition [

selected do: [:block | block detachDecorators: SBMultiSelectionDecorator]
]
Expand Down
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBCursorPosition.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ SBCursorPosition >> isText [
]

{ #category : #'as yet unclassified' }
SBCursorPosition >> leaveIn: anEditor with: aCursor [
SBCursorPosition >> leaveIn: anEditor with: aCursor for: aNewPosition [


]
Expand Down
4 changes: 2 additions & 2 deletions packages/Sandblocks-Core/SBCursorText.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ SBCursorText >> isText [
]

{ #category : #'as yet unclassified' }
SBCursorText >> leaveIn: anEditor with: aCursor [
SBCursorText >> leaveIn: anEditor with: aCursor for: aNewPosition [

self applyCommandIn: anEditor.
self textMorph stopEditing.
self textMorph containingSandblock deselectedTextMorph: self textMorph
self textMorph containingSandblock deselectedTextMorph: self textMorph for: aNewPosition
]

{ #category : #'as yet unclassified' }
Expand Down

0 comments on commit 2b4049c

Please sign in to comment.