lxqt / lxqt-globalkeys

Daemon used to register global keyboard shortcuts
https://lxqt.github.io
GNU Lesser General Public License v2.1
31 stars 31 forks source link

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

Open patrick-emmabuntus opened 2 months ago

patrick-emmabuntus commented 2 months ago

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 commented 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.

tsujan commented 2 months ago

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.

stefonarch commented 2 months ago

I made some test with shortcuts added by different WMs:

tsujan commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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.