tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Desktop client is not "reading" my accentuated letters using composite keys

Open facundobatista opened this issue 9 years ago • 251 comments

When I normally write in all the rest of the programs, if I hit ' and e, I see é.

However, in Telegram app it appears the e without the tilde.

Same happens for all the composite letters. Note that this doesn't seem to be an "unicode" problem... if I hit "ñ" (I have a separate key in the keyboard for it), it appears ok.

Thanks!

facundobatista avatar Aug 28 '15 14:08 facundobatista

auchri: thanks for checking! I'm seeing that #27 is about showing those characters... and my problem was about inserting them

However, I just tried it again, and it worked! very, very strange: I just closed the window half an hour ago and now I reopened it: no even restarted the telegram process.

I'll have to debug this deeper... any hint? (like starting telegram in --debug in the terminal or something)

Thanks

facundobatista avatar Aug 28 '15 15:08 facundobatista

So, I finally reproduced the sequence for this to happen. It's very weird.

Let's start from the process being started, the Telegram window is not open, but the icon in the systray is ok. I click in that icon, choose "Open Telegram", and the main window pops up.

There, if I use composite keys (again, for example, ' and e would make an é) all works ok. I send the message, the entry box is clean.

Then I commute with to other window (alt-tab, or clicking somewhere else), and when I'm back, the composite keys no longer work!!!

Then I close the window. Go to the systray icon, and make it open again, and composite keys work fine. Until next window switching, of course.

I'll very glad to help you with this debugging.

Thanks!

facundobatista avatar Sep 01 '15 11:09 facundobatista

I'm afraid your steps don't destroy neither dead keys nor compose sequences in my Telegram :(

(Fedora 21 + KDE 4 in my case)

ralesk avatar Sep 02 '15 11:09 ralesk

So it doesn't happen everywhere! This is good news (even if it may complicate the debugging).

facundobatista avatar Sep 02 '15 13:09 facundobatista

I wonder if the linux release also uses its own Qt (and doesn't just ship with it, it really loads those libs), if it doesn't, maybe there's a bad patch (or the lack of it) in the distro's Qt.

Or maybe it's higher up. Maybe it's something in the desktop environment doing something weird with the keyboard (in early versions of KDE4 kwin the alt key could get stuck after alt-tabbing — so hmm, try another window manager than the one you're currently using and see if the issue can be reproduced then), maybe it's something on the X11 level (examining distro patches could help here, but I'm not sure which part of X.Org we should be looking at precisely).

ralesk avatar Sep 03 '15 08:09 ralesk

I have the same problem in Ubuntu 14.10.

ricardobarantini avatar Oct 13 '15 12:10 ricardobarantini

I have the same problem with Ubuntu 14.04 LTS. I have try to resolve it installing ibus-qt4 but it does not work.

kaluosi avatar Jan 18 '16 10:01 kaluosi

Also having the same problem on Ubuntu Gnome 14.04 LTS. Installing ibus-qt4 didn't solve it either.

eullerborges avatar Feb 03 '16 02:02 eullerborges

Also having the same problem on Ubuntu 15.10. Installing ibus-qt4 didn't solved it. This issue only happens in Telegram desktop; in other programs the accent works fine.

musantro avatar Mar 11 '16 08:03 musantro

Same problem in Xubuntu 15.10. I have to copy from Mousepad and paste in Telegram to get the tildes.

alfonsonishikawa avatar Jun 08 '16 13:06 alfonsonishikawa

Same problem in Ubuntu 16.04 64-bits, Unity desktop environment. And I have an almost identical computer with the same version of Ubuntu in which it does not happen. Even tried to switch the GTK_IM_MODULE variable to no avail.

Patola avatar Jun 10 '16 04:06 Patola

I have the same problem but only in the send image window, and sometimes it just works.

Steps:

  1. Select a conversation
  2. Click the camera icon
  3. Select an image
  4. On the new windows use compose key for any char sequence.

Workarround: minimize the application with the send image windows open and restore.

I'm using Debian testing/sid with 5.5.1 qtbase-abi-5-5-1 and almost all KDE/Plasma form experimental repos.

martinchaves avatar Jun 20 '16 13:06 martinchaves

Workaround: call with QT_IM_MODULE=xim /opt/telegram/Telegram

narcelio avatar Jul 08 '16 15:07 narcelio

@narcelio's solution works in Xubuntu 16.04.

Had to write the command as env QT_IM_MODULE=xim /opt/telegram/Telegram in my launcher, although.

alfonsonishikawa avatar Jul 08 '16 16:07 alfonsonishikawa

@narcelio's solution works like a charm on Ubuntu Gnome 14.04!

eullerborges avatar Jul 16 '16 01:07 eullerborges

Same problem here on elementary OS Loki. The workaround of setting QT_IM_MODULE=xim solves the problem, but then I noticed that the default value is QT_IM_MODULE=ibus. Thus, adding "ibus-daemon" to the list of apps run at initialization works as well.

aldonogueira avatar Sep 23 '16 17:09 aldonogueira

@narcelio's solution worked for me on Xubuntu 16.04, with Spanish keyboard layout.

Starkie avatar Oct 02 '16 08:10 Starkie

@facundobatista @narcelio Solution works like a charm ( spanish keyboard ) thank you very much!!

sgregori avatar Oct 03 '16 12:10 sgregori

@narcelio +1 Solution works like a charm (Spanish keyboard also)

xkrambler avatar Oct 31 '16 19:10 xkrambler

@narcelio's solution works well, adding @alfonsonishikawa tip (env) in Xubuntu Menu Editor Application Laucher.

caco13 avatar Nov 30 '16 16:11 caco13

I am experiencing exactly the same bug on Windows. @facundobatista's observation that accented characters work again once you re-open Telegram from the system tray is still applicable. Not really workable though, to re-open Telegram from the system tray every time you've switched windows.

Happy to see there's a fix for Linux, has any fix been found for Windows?

nienkeboomsma avatar Dec 05 '16 15:12 nienkeboomsma

Still happening to me on Ubuntu 16.04, and @narcelio's solution works.

Darkhogg avatar Mar 06 '17 11:03 Darkhogg

Adding ibus-daemon to startup apps as @aldonogueira said on Elementary OS Loki worked for me.

vamcs avatar Jun 22 '17 03:06 vamcs

Also this link helped me for the same problem: https://askubuntu.com/questions/135548/how-to-add-ibus-to-start-up-applications As @vamcs and @aldonogueira said before me.

hearues-zueke-github avatar Aug 04 '17 15:08 hearues-zueke-github

Same problem with telegram desktop 1.1.23 from the Ubuntu 16.04 snap repository (telegram-sergiusens). None of the workarounds above work, IM is set to ibus and ibus-daemon is running.

jjchico avatar Nov 17 '17 12:11 jjchico

Still reproducible on Telegram Desktop 1.2.6 with Ubuntu 16.04.4. Installed via snap.

athosmoreno avatar Feb 26 '18 03:02 athosmoreno

Still reproducible on Telegram Desktop 1.2.15 with Ubuntu 17.10.

Installed via Snap.

edevil avatar Mar 28 '18 23:03 edevil

@edevil try the normal build, for some reason the snap one still has this bug

athosmoreno avatar Mar 29 '18 00:03 athosmoreno

Worked at Ubuntu 17.10. If you install the Telegram Desktop from the Ubuntu Store the dead keys will not work. But if you download the app from Telegram's site, will be work naturally!

adialaleal avatar Apr 06 '18 14:04 adialaleal

Just chiming in here: dead keys aren't working for me on the latest Telegram Desktop (1.2.17), on Ubuntu 16.04. I'm using fcitx as my input method, but the problem didn't disappear when I tried ibus and xim. The problem exists in all of my other QT applications as well.

Igetin avatar Apr 19 '18 08:04 Igetin