mike-fabian / ibus-typing-booster

ibus-typing-booster is a completion input method for faster typing
https://mike-fabian.github.io/ibus-typing-booster/
Other
228 stars 16 forks source link

[BUG] First typed letter on WhatsApp web gets omitted on Firefox #471

Closed psads-git closed 11 months ago

psads-git commented 11 months ago

Describe the bug

In WhatsApp web using Firefox, many times, when starting typing a new word, the first letter does not get typed.

https://github.com/mike-fabian/ibus-typing-booster/assets/75945439/f28687d0-a310-4b43-83d6-76dfeb3eb3d9

Screenshots or videos

See attached video.

When update something appears, I had typed que, therefore omitting the letter q.

ibus-typing-booster version?

ibus-typing-booster-2.24.4-1.fc39.noarch

ibus version?

ibus-1.5.29~rc2-3.fc39.x86_64

Distribution and version?

Fedora 39

Desktop and version?

XFCE

Xorg or Wayland?

x11

psads-git commented 11 months ago

The reported issue does not occur when using Chrome instead of Firefox. Notwithstanding, when the first character of the first word type in a new WhatsApp message, the word can never be typed, be using Firefox or Chrome. Please, see the attached video.

https://github.com/mike-fabian/ibus-typing-booster/assets/75945439/4931afd3-b75b-4c55-a383-061e835ecbfb

mike-fabian commented 11 months ago

I see such problem in Whatsapp and Telegram when using ibus-m17n, see: https://github.com/ibus/ibus-m17n/issues/54

But I do not see that problem when using ibus-typing-booster.

I am really interested into reproducing this with ibus-typing-booster, I could not make progress fixing the problem in ibus-m17n, if you help me reproducing the problem with ibus-tying-booster, maybe this gives me more insight in what is going on.

psads-git commented 11 months ago

Thanks, Mike, for your reply.

I am attaching a short video, where I try to make clear how the reported issue emerges.

I am available to try anything you think worthy!

https://github.com/mike-fabian/ibus-typing-booster/assets/75945439/3a8d6414-5322-45ad-811f-002ff94590e9

mike-fabian commented 11 months ago

By the way, you see to use inline completion in ibus-typing-booster and although you write that you use XFCE (i.e. x11) in your initial report, the inline completion shown is completely underlined and black. Usually, the inline completion should not be underlined and gray (gray is the default setting). One could change the default to black of course but there is no setting to make the inline completion underlined.

If Wayland were used, it would look like that, the inline completion wouuld be black (because on Wayland currently colour in the preedit does not work) and the whole preedit would always be underlined (because currently there is no way to turn off underlining of the preedit in Wayland).

But you write that you used XFDE and x11, so this is weird, I wonder why your inline completion in your first video looks like that. Has that been recorded on Wayland maybe?

In your second video, the inline completion is not underlined and colour works, that is how it should be on x11.

psads-git commented 11 months ago

I have never used Wayland, Mike! I have used XFCE for years and years!

psads-git commented 11 months ago

Today, the vanishing of the first letter only occurs in the first word of the message, as long as its first letter is accented and not in the subsequent words, be they accented or not.

mike-fabian commented 11 months ago

But it looks different in your two videos:

The first video has no preedit colour and the preedit always underlined:

https://github.com/mike-fabian/ibus-typing-booster/issues/471#issuecomment-1837147665

And second video has preedit colour and the inline completion part of the preedit is not underlined:

https://github.com/mike-fabian/ibus-typing-booster/issues/471#issuecomment-1838455358

psads-git commented 11 months ago

I cannot explain that, Mike, but I assure you that I have never used Wayland.

The É problem has occurred since very, very long ago, but I had never reported it.

mike-fabian commented 11 months ago

Great, I can reproduce it now, the important detail that was missing is that the first character in WhatsApp (or Telegram) vanishes only if typing of that characters involves using a dead key. Normal characters without dead keys work even as the first character when typing with ibus-typing-booster in WhatsApp and Telegram.

In the ibus-m17n case, https://github.com/ibus/ibus-m17n/issues/54 the problem is even worse because first characters always disappear no matter whether they are typed using dead keys or not.

mike-fabian commented 11 months ago

But it is great that I can reproduce this in ibus-typing-booster now, now I have something I can investigate. Thank you!

psads-git commented 11 months ago

You are welcome, Mike!

mike-fabian commented 11 months ago

Can you try ibus-typing-booster 2.24.5 from: https://copr.fedorainfracloud.org/coprs/mfabian/ibus-typing-booster/builds/

This seems to fix it for me.

psads-git commented 11 months ago

Thanks, Mike! Apparently, it is now working fine.

mike-fabian commented 11 months ago

Thank you very much for testing!

By the way, as you are a very active user of ibus-typing-booster, do you have an opinion about this:

https://github.com/mike-fabian/ibus-typing-booster/issues/470#issuecomment-1838419492

Would the change of the

☑️ Off the record mode

option into a combobox options with 4 values bother you?

Record mode [All | Dictionaries and user database | Dictionaries | Nothing]

Personally I never used the “☑️ Off the record mode” optioņ so that change would not bother me.

psads-git commented 11 months ago

In my personal use of ibus-typing-booster, I do not need the mentioned option, Mike. However, I believe that some people may find useful such an option. In this context, the proposed combobox alternative is better than the other one.

mike-fabian commented 11 months ago

Fix is included in ibus-typing-booster-2.24.5: https://github.com/mike-fabian/ibus-typing-booster/releases/tag/2.24.5

psads-git commented 11 months ago

While the initial É problem is fixed, Mike, from time to time, again on Firefox Web WhatsApp, in the middle of the message, when a new word is being started, the first character disappears.

That occurs with not accented first characters, and I have not, until now, devised a systematic way of reproducing the issue.

The issue does not occur when using Chrome.

mike-fabian commented 11 months ago

Does that occur only with certain letters, or is it completely independent of which letters you type? Does it depend on upper or lower case letters? Is AltGr involved?

psads-git commented 11 months ago

Does that occur only with certain letters

I have not found a specific pattern.

, or is it completely independent of which letters you type?

It appears so.

Does it depend on upper or lower case letters?

It has occurred with lower case letters.

Is AltGr involved?

No.

mike-fabian commented 11 months ago

Does it depend on typing speed?

psads-git commented 11 months ago

Does it depend on typing speed?

No, it does not. Henceforward, I will be paying closer attention, to device a reproduction path.

mike-fabian commented 11 months ago

I think I an reproduce that. It seems pretty rare but it seems to occur in this video:

https://github.com/mike-fabian/ibus-typing-booster/assets/2330175/de1411bf-1087-4d56-9256-9ed867b0b248

Here I type a + space many times, slowly. When I typed this for the 14th time, the a vanished and only the space remained.

mike-fabian commented 11 months ago

I am using the option

Minimum number of chars for completion [ 0]

Therefore you see the next a predicted in my video in orange. Are you also using the same value for this option?

psads-git commented 11 months ago

That is it, Mike!

Yes, I am also using 0 for that option.

In the day I reported the issue, the problem was occurring extremely often.