Skip to content

fix: SG-44428: Fix text cursor - #1360

Merged
eloisebrosseau merged 1 commit into
AcademySoftwareFoundation:mainfrom
eloisebrosseau:fix-text-cursor
Aug 21, 2026
Merged

fix: SG-44428: Fix text cursor#1360
eloisebrosseau merged 1 commit into
AcademySoftwareFoundation:mainfrom
eloisebrosseau:fix-text-cursor

Conversation

@eloisebrosseau

@eloisebrosseau eloisebrosseau commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

fix: SG-44428: Fix text cursor

Summarize your change.

This PR adds a few missing session events the annotation package needs to listen on to commit the text annotations and remove the cursor that is displayed on the frame while typing. The method on_text_commit is passed as a lambda to know if the event needs to be consumed (i.e. hotkeys) or not (i.e. session events) before committing the text annotations.

Describe the reason for the change.

When saving a session after adding text annotations, the "|" indicating where the cursor is on the screen was still being kept as part of the annotations. This caused the symbol to be shown when reloading the session file previously saved.

Describe what you have tested and on which operating system.

Adding text annotations, saving the session file, and reloading the session file to validate that the text cursor is not displayed on the frame anymore was tested on macOS.

@eloisebrosseau
eloisebrosseau force-pushed the fix-text-cursor branch 2 times, most recently from ee86207 to 9296b0f Compare August 10, 2026 15:17
Signed-off-by: Éloïse Brosseau <eloise.brosseau@autodesk.com>

@bernie-laberge bernie-laberge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eloisebrosseau
eloisebrosseau merged commit 794fd78 into AcademySoftwareFoundation:main Aug 21, 2026
19 checks passed
@eloisebrosseau
eloisebrosseau deleted the fix-text-cursor branch August 21, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants