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

Cannot use Meta key in global shortcuts with Qt 5.14 #103

Open
kapsh opened this issue Feb 8, 2020 · 8 comments
Open

Cannot use Meta key in global shortcuts with Qt 5.14 #103

kapsh opened this issue Feb 8, 2020 · 8 comments
Labels
upstream issue Issue related to third party libraries

Comments

@kapsh
Copy link
Contributor

kapsh commented Feb 8, 2020

Bug description

Cannot use Meta key in shortcuts.

Steps to reproduce
Steps to reproduce the behavior:

  1. Go to Settings - Shortcuts.
  2. Try to assign shortcut with Meta (aka Windows key) to any action.
  3. Garbage in Key sequence field (rៀ?, Meta+Q), shortcut doesn't work.

Expected behavior

Shortcuts with Meta key worked before.

Screenshots

scr_2020-02-08_22-32-54

Environment

  • OS: Exherbo Linux
  • Desktop environment: none
  • Crow Translate version: any recent

Additional context

Suspicion fell on newer qhotkey first, but I wasn't able to locate broken commit. Further investigation shows that this works with Qt 5.12.7, but not with current 5.14.1.

@kapsh kapsh added the bug Something isn't working label Feb 8, 2020
@kapsh kapsh changed the title Cannot use Meta key in global shortcuts Cannot use Meta key in global shortcuts with Qt 5.14 Feb 8, 2020
@Shatur
Copy link
Member

Shatur commented Feb 9, 2020

Confirmed! But, unfortunately, this is a regression in Qt, which is not related to Crow Translate :(

Workaround: open ~/.config/crow/Crow Translate.conf and manually replace ៀ?, Meta+E with Meta+E.

@kapsh
Copy link
Contributor Author

kapsh commented Feb 9, 2020

I see, thank you. My workaround would be to keep Qt 5.12 for a while.

@Shatur Shatur pinned this issue Dec 8, 2020
@Shatur Shatur added upstream issue Issue related to third party libraries and removed bug Something isn't working labels Nov 14, 2021
@MurzNN
Copy link

MurzNN commented Apr 15, 2022

Strange thing that shortcuts with Meta key works in other KDE apps, eg in Settings, here is a screencast:
https://user-images.githubusercontent.com/336662/163588406-9b7b210a-b2b8-4caf-9681-b2f150920757.mp4

@Shatur
Copy link
Member

Shatur commented Apr 15, 2022

It's because the bug in QKeySequenceEdit. KDE use their custom widget for it.

@VolkMilit
Copy link
Contributor

It's 2022 already, and this bug is still unresolved. Maybe we need to create our own widget based on QKeySequenceEdit? I don't think Qt will interested in resolving this bug in Qt 5, since they ditched LTS releases and Qt 6 will be a primary release now.

@Shatur
Copy link
Member

Shatur commented Apr 16, 2022

I planning to migrate to Qt6 in the future :)

@Cherkah
Copy link

Cherkah commented Mar 10, 2024

with the release of the new KDE plasma 6 it is a good idea to proceed to the Crow Translate upgrade

@VolkMilit
Copy link
Contributor

@Cherkah
None of the "stable" distributions are using KDE Plasma 6 at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream issue Issue related to third party libraries
Development

No branches or pull requests

5 participants