Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unicode keymappings are not working in chat #9860

Closed
Parveshdhull opened this issue Dec 7, 2020 · 13 comments
Closed

unicode keymappings are not working in chat #9860

Parveshdhull opened this issue Dec 7, 2020 · 13 comments

Comments

@Parveshdhull
Copy link

In linux emojis can be mapped to keyboard keys, for fast emoji typing, like

xmodmap -e "keycode 49 = U1F44D U1F64F"

https://github.com/Parveshdhull/emoji-keyboard

But for some reason nothing is happening in chat box when key is pressed, while it works everywhere.

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Dec 7, 2020

Are you sure that it works in other Qt applications?

@Parveshdhull
Copy link
Author

Parveshdhull commented Dec 7, 2020

yes, it works everywhere else.

I also tried autokey. it doesn't have any issue with simple text, but emoji is creating problem.
https://github.com/autokey/autokey

autokey has many ways of automatic pasting. All failed in telegram, except shift+insert.

I don't know what chat box is doing but after that autokey also freezes.

@ilya-fedin
Copy link
Contributor

yes, it works everywhere else.

Usually when people say "everywhere else", it turns out that Telegram is the only Qt application on their computer and they checked in Gtk applications and not Qt applications.

@Parveshdhull
Copy link
Author

@ilya-fedin
Thanks for pointing out that. You were right telegram was only Qt application in my computer.

I tried in another Qt applications and it didn't worked. Same like telegram.
https://www.archlinux.org/packages/community/x86_64/maui-nota/

Can you suggest me any solution for this? Should I report bug for Qt or is this expected behavior.

@ilya-fedin
Copy link
Contributor

Can you suggest me any solution for this? Should I report bug for Qt or is this expected behavior.

I have no idea how that xmodmap magic works, probably you should open a bug report for Qt and ask Qt developers.

@Parveshdhull
Copy link
Author

Thanks!

@Parveshdhull
Copy link
Author

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Dec 8, 2020

  1. tdesktop is QtWidgets-based, not QtQuick-based, unlike maui-nota.
  2. Other examples of QtWidgets-based applications are VLC and qBittorrent, you could try with these.

@Parveshdhull
Copy link
Author

@ilya-fedin Thanks for correcting me. I checked in VLC and it has same problem. I updated bug report.

@Parveshdhull
Copy link
Author

Parveshdhull commented Dec 12, 2020

Hey @ilya-fedin,
There is a update on report and a fix is released. Author asked me to verify. But unfortunately I don't know how to apply patch and build and all. I learned build instructions from "tdesktop/docs/building-cmake.md", but I don't where I have to apply fix.

Report: https://bugreports.qt.io/browse/QTBUG-89184
Fix: https://codereview.qt-project.org/c/qt/qtbase/+/251703

@Parveshdhull
Copy link
Author

UPDATE
Bug fixed in Qt 6.0.1

https://bugreports.qt.io/browse/QTBUG-89184

@ilya-fedin
Copy link
Contributor

tdesktop won't update to Qt 6 in near two years

@github-actions
Copy link

github-actions bot commented Mar 3, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants