Closed Bug 1197851 Opened 11 years ago Closed 8 years ago

handle the various post-suggestion-selection scenarios better

Categories

(Firefox OS Graveyard :: Gaia::Keyboard, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dietrich, Unassigned)

Details

Bug 1182844 adds a space after a word is selected from the suggestion list. However, we can do even better. From comment 11 in bug 1182844: (In reply to Tim Guan-tin Chien [:timdream] (slow response; please ni? to queue) from comment #10) > BTW, what if the user intend to end the sentence (with a period) rather than > typing another word? iOS employs some logic to automatically replace the > inserted space to period in this case and I wonder if that's what we should > implement altogether. Here are more details on how iOS and Android handle autocomplete. Android's behavior is smarter than iOS, but its implementation has more corner cases. In the following examples, I use the '|' character to represent the cursor position (to make the space characters easier to see when present). On iOS: - "Goo" is autocompleted to "Good |" - autocompleted "Good |" + 'm' = "Good m|" - autocompleted "Good |" + ' ' = "Good |" (new space is ignored or overwrites appended space) - autocompleted "Good |" + '.' = "Good.|" (period overwrites appended space) - autocompleted "Good |" + '.' + 'm' = "Good.m|" On Android: - "Goo" is autocompleted to "Good|" - autocompleted "Good|" + 'm' = "Good m|" - autocompleted "Good|" + ' ' = "Good |" - autocompleted "Good|" + '.' = "Good.|" - autocompleted "Good|" + '.' + 'm' = "Good. M|" On Firefox OS 2.5 today, - "Goo" is autocompleted to "Good|" - autocompleted "Good|" + 'm' = "Goodm|" - autocompleted "Good|" + ' ' = "Good |" - autocompleted "Good|" + '.' = "Good.|" - autocompleted "Good|" + '.' + 'm' = "Good.m|"
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.