tdesktop
tdesktop copied to clipboard
Desktop client is not "reading" my accentuated letters using composite keys
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!
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
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!
I'm afraid your steps don't destroy neither dead keys nor compose sequences in my Telegram :(
(Fedora 21 + KDE 4 in my case)
So it doesn't happen everywhere! This is good news (even if it may complicate the debugging).
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).
I have the same problem in Ubuntu 14.10.
I have the same problem with Ubuntu 14.04 LTS. I have try to resolve it installing ibus-qt4 but it does not work.
Also having the same problem on Ubuntu Gnome 14.04 LTS. Installing ibus-qt4 didn't solve it either.
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.
Same problem in Xubuntu 15.10. I have to copy from Mousepad and paste in Telegram to get the tildes.
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.
I have the same problem but only in the send image window, and sometimes it just works.
Steps:
- Select a conversation
- Click the camera icon
- Select an image
- 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.
Workaround: call with QT_IM_MODULE=xim /opt/telegram/Telegram
@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.
@narcelio's solution works like a charm on Ubuntu Gnome 14.04!
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.
@narcelio's solution worked for me on Xubuntu 16.04, with Spanish keyboard layout.
@facundobatista @narcelio Solution works like a charm ( spanish keyboard ) thank you very much!!
@narcelio +1 Solution works like a charm (Spanish keyboard also)
@narcelio's solution works well, adding @alfonsonishikawa tip (env
) in Xubuntu Menu Editor Application Laucher.
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?
Still happening to me on Ubuntu 16.04, and @narcelio's solution works.
Adding ibus-daemon
to startup apps as @aldonogueira said on Elementary OS Loki worked for me.
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.
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.
Still reproducible on Telegram Desktop 1.2.6 with Ubuntu 16.04.4. Installed via snap.
Still reproducible on Telegram Desktop 1.2.15 with Ubuntu 17.10.
Installed via Snap.
@edevil try the normal build, for some reason the snap one still has this bug
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!
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.