HeliBoard icon indicating copy to clipboard operation
HeliBoard copied to clipboard

After pressing on suggested text correction - add space

Open Obegg opened this issue 1 year ago • 8 comments

Describe the solution you'd like Google Keyboard behavior is when you are using text correction from suggestion toolbar - there will be a space afterwards.

Use case Text correction.

Describe alternatives you've considered (if any) None.

Obegg avatar May 28 '24 19:05 Obegg

I think this would be awful, why do you think this is preferable over the current state?

Helium314 avatar May 28 '24 19:05 Helium314

Because I often need to add space after each time I click on the text correction suggestion from the toolbar, if for example I type "Foo", then in the suggestion toolbar I get "Boo", I click on it, I expect a space afterwards so I can continue typing without interference (which is how I view to current behavior to be), also that's how I got used to from Google Keyboard.

You asked me why I think it's preferable, now I ask you - why you think the current behavior is better?

Obegg avatar May 28 '24 20:05 Obegg

why you think the current behavior is better?

Because the current behavior is adding a space after selecting a suggestion only once you continue typing. And even then it's not added in all cases, e.g. not added when entering . after selecting a suggestion. Does Google Keyboard (do you mean Gboard, or are you using such an old version?) really write Foo . when you select Foo and press .?

Helium314 avatar May 28 '24 21:05 Helium314

Because the current behavior is adding a space after selecting a suggestion only once you continue typing

Wait, is it? I did not notice it, I just tested it, and I can see why I did not notice it - because the "cursor" (however it's called) is still at the end of the first word, not afterwards (as if the space doesn't exist yet)

Gboard

Yes, hahaha, I actually forgot the name of it since I started using this project.

Obegg avatar May 28 '24 21:05 Obegg

Yes, the cursor does not move. This is because the space is not actually added to the text field (avoiding wrongly added spaces, which can mess up a lot of things). The app just remembers that a space should be added, and does it on next input.

I wonder why Gboard does it different though. After all, like HeliBoard it's based on AOSP keyboard, which had implemented this "phantom space" mechanism a long time ago.

Helium314 avatar May 30 '24 06:05 Helium314

So... is it not possible to auto add space after text correction? (with cursor)

Obegg avatar May 30 '24 18:05 Obegg

No, it's not possible to automatically add the space right after clicking the correction.

Helium314 avatar May 31 '24 06:05 Helium314

I re-open this issue since this only works on same language, but if I type in English and press a suggestion and then switch to Arabic/Hebrew it doesn't add space after the suggestion.

Obegg avatar Jul 24 '24 07:07 Obegg