lxqt-globalkeys icon indicating copy to clipboard operation
lxqt-globalkeys copied to clipboard

The shortcut management system used the English keyboard by default

Open patrick-emmabuntus opened this issue 1 year ago • 6 comments

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.

patrick-emmabuntus avatar Jul 16 '24 22:07 patrick-emmabuntus

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.

stefonarch avatar Jul 17 '24 11:07 stefonarch

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 avatar Jul 17 '24 12:07 tsujan

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">

stefonarch avatar Jul 17 '24 15:07 stefonarch

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.

tsujan avatar Jul 17 '24 15:07 tsujan

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.

patrick-emmabuntus avatar Jul 17 '24 18:07 patrick-emmabuntus

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.

stefonarch avatar Jul 17 '24 20:07 stefonarch