Open patrick-emmabuntus opened 2 months ago
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.
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.
I made some test with shortcuts added by different WMs:
<keybind key="A-a" layoutDependent="yes">
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.
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.
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.
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.