-
Notifications
You must be signed in to change notification settings - Fork 4
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
Why is there a TSFTextStore per input type? #9
Comments
Yes. TSF1 supports switching types in TSFTextStore. We also need to switch ITfContext if the type of edit control has been changed. For example, if a focused input control changes from type="text" to type="password", we need to call into Windows Input Services about the input type change, we also need to switch to a disalbed ITfContext assotiates iwth TSFTextStore so that we don't report user password. In current design, if input type changes from "text" to "password", we swap the assotiated text store which already has a disabled ITfContext. |
Hi there, One of the initial implementers of For as long as I can remember, there is no strong reason behind the current design, which was introduced by me at crrev.com/11871033 to add InputScope support. The main motivation of not reusing the same
When I implemented it, I was not sure whether most of existing IMEs could handle the later behavior correctly or not. So I just went with the former approach. Reading my code again, Hope this helps. |
Can't the TSFTextStore change its type? I believe TSF1 supports that, doesn't it?
What happens if a focused editable element changes from input type="text" to type="email"? Do you swap the associated text store?
The text was updated successfully, but these errors were encountered: