Capitalize suggestions when pressing shift#1807
Conversation
|
This works well, but there is "weird" behavior in some cases.
Incoming autocorrect makes the typed word show on the left. I think this is stil fine, but the typed word should follow the new caps rules.
I don't think so, we can add one later if some users dislike this behavior.
Yes, it should be independent on whether the user used glide typing or not. |
Shouldn't the typed word always be exactly what you typed?
In what location?
Done. |
My reasoning for following the new capitalization rules is that having a lowercase suggesting with this feels strange, and otherwise it doesn't work with a word that isn't in a dictionary.
I think the second (left) suggestion would be good. In my opinion it should be in the |
Fixed.
For non-batch, I used the existing logic of Some minor issues:
|
That's fine, because the PR is only about suggestions. A slight inconvenience trying to capitalize after picking a suggestion is ok.
Ultimately it's coming from the approach of getting new suggestions when changing capitalization. And possibly the behavior is coded inside the native library. |
It gets even stranger: if you type but, But, or BUT, you get different suggestions, and they change again for each of the three shift states. |
|
The "but" thing is weird, and knowing the problem already from the start is not ideal. |
|
Unless I misunderstand, this doesn't implement #783. That is for capitalizing words that have been typed by pressing shift followed by space instead of having to retype, edit, or highlight the word. |
|
It implements a variation of #783, proposed in the discussion. It still lets you capitalize words that have been typed by pressing shift without having to retype, edit, or highlight the word, but it requires that you pick the capitalized version from suggestions. |
Capitalize suggestions according to the current keyboard shift state, and suggest the capitalized version of the current word.
Should this be guarded by a setting?
Should batch input be treated the same way?
Fixes #540, fixes #783, fixes #1800, fixes #1584.
Replaces #1745.