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

The shortcut management system used the English keyboard by default #294

Open
patrick-emmabuntus opened this issue Jul 16, 2024 · 6 comments

Comments

@patrick-emmabuntus
Copy link

I'm on Debian 12, and the English keyboard is used when typing shortcuts while my system used a French keyboard.

Here is my shortcuts file globalkeyshortcuts.conf.zip and do you think this is due to a bad configuration of this file?

Thank you in advance for your help.

@stefonarch
Copy link
Member

I made some test: Adding a shortcut ALT+Q for qps from italian keyboard (qwerty) and switching to french the shortcuts remains indeed on the physical key and doesn't change.

So it looks that the shortcuts needs to be added using the layout.

@tsujan
Copy link
Member

tsujan commented Jul 17, 2024

I think lxqt-globalkeys has been so from the start: its config file isn't "portable" because it doesn't follow https://doc.qt.io/qt-6/qkeysequence.html#SequenceFormat-enum. In other words, the shortcuts used with French should be created with French.

@tsujan tsujan transferred this issue from lxqt/lxqt Jul 17, 2024
@stefonarch
Copy link
Member

stefonarch commented Jul 17, 2024

I made some test with shortcuts added by different WMs:

  • xfwm4: same issue, uses the physical keys always
  • kwin_wayland (and probably kwin_x11 too): respects layout
  • labwc has an option to make a shortcut respect the layout: <keybind key="A-a" layoutDependent="yes">

@tsujan
Copy link
Member

tsujan commented Jul 17, 2024

xfwm4: same issue, uses the physical keys always

Maybe because it depends on X11 too. I don't think we could do something else with this X11-dependent code. Theoretically it isn't impossible, but it may not be worth the effort.

labwc has an option...

LabWC is superb in many respects.

@patrick-emmabuntus
Copy link
Author

Thanks for your advices.
I use Xfwm4, however I created the shortcuts using the French layout and I test them always using the French layout, and the letters A, Q, Z, W, M do not work.
On the other hand, if I switch to the English layout then the shortcuts work as expected.
So it looks like it follows the English layout.

@stefonarch
Copy link
Member

however I created the shortcuts using the French layout and I test them always using the French layout, and the letters A, Q, Z, W, M do not work.

Are you sure about? I can add with french layout Alt+Shift+Q for qps without issues, while the Q is an physical A key here. Some shortcuts may not work because they are taken already by xfwm4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants