Skip to content

Reverted OnIMEUpdate to use TextLine.SetText#78

Open
ErLullo wants to merge 1 commit intod1str4ught:mainfrom
ErLullo:textbox-bug
Open

Reverted OnIMEUpdate to use TextLine.SetText#78
ErLullo wants to merge 1 commit intod1str4ught:mainfrom
ErLullo:textbox-bug

Conversation

@ErLullo
Copy link
Contributor

@ErLullo ErLullo commented Feb 20, 2026

It seems to fix the cursor issue on textboxes.

fix: avoid IME ↔ EditLine loop

Previously, OnIMEUpdate used EditLine.SetText, which, when the control has focus, also calls ime.SetText. Since OnIMEUpdate is already invoked by the IME after its internal buffer is updated, sending the same text back into the IME creates an unnecessary and potentially unstable synchronization loop. We now use TextLine.SetText(self, ime.GetText()) to update only the UI without touching the IME’s internal state.

@rtw1x1 please verify it because it is a revert from your merge

It seems to fix the cursor issue on textboxes
@rtw1x1
Copy link
Contributor

rtw1x1 commented Feb 20, 2026

Reverting this will stop noticeBoard from working.

Good luck you all!

@MindRapist
Copy link
Contributor

Found the issue and fixed it. The revert is valid. The fix will be applied in the next PR

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