-
Notifications
You must be signed in to change notification settings - Fork 870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: improve changes application from TextInputClient #2510
base: master
Are you sure you want to change the base?
Conversation
…ingerdmx#2483) * docs: update controller length extension method deprecation message * docs: update changelog
Co-authored-by: CatHood0 <santiagowmar@gmail.com>
…ute (singerdmx#2438) * feat: Enable BoxDecoration for DefaultTextBlockStyle of header Attribute --------- Co-authored-by: Ellet <echo.ellet@gmail.com>
… of page route changing when editor is set to readonly. (singerdmx#2488) Co-authored-by: chaos <chaos@veigit.com>
This comment was marked as resolved.
This comment was marked as resolved.
If you're wondering why this PR suddenly has commits from other PRs, it was my mistake when trying to get the latest changes from master, using |
This comment was marked as resolved.
This comment was marked as resolved.
// formatting method for the specific delta type (insertion, deletion, replacement, or non-text update). | ||
// If the delta type is not recognized, it throws an UnimplementedError. | ||
@internal | ||
@experimental |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to improve the documentation of these extensions.
url: "https://pub.dev" | ||
source: hosted | ||
version: "0.7.4" | ||
version: "0.7.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idk why this change was included, since i didn't change anything on the example.
…or web, since its buggy
Important I've been testing the change made in #2505, and it seems that when you press I can't say exactly why, but it seems like the change made in that PR needs to be tested, as it could impact the experience for users who aren't using any Chinese IME. |
url: "https://pub.dev" | ||
source: hosted | ||
version: "3.0.9" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you using the latest stable Flutter SDK?
} | ||
} | ||
|
||
if (Platform.isIOS) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wouldn't work on web, use isIOSApp
or isIOS
(which is true
when on iOS even on a browser) instead.
That's because you're using |
Description
Previously, our
TextInputClient
implementation only allowed for one specific action during theupdateEditingValue
call: applying the new (or removed) text to the document. However, it didn't have good support forCharacterShorcutEvents
when applying them to virtual keyboards.For this purpose, a new implementation was created that allows for more explicit retrieval of the type of change made to the document/text and for simple application.
This description will be updated soon to provide more information on why it was done this way.
Note
This PR fixes the issue where the cursor isn't synchronized with keyboard events and positions the caret in places it shouldn't. I've at least tried reproducing the issue on physical devices, and it seems to have been completely eliminated. I'll have to test whether this issue has also been resolved on emulators.
Related Issues
Type of Change
TODO
TextEditingValue
passed)