rbreaves / kinto

Mac-style shortcut keys for Linux & Windows.
http://kinto.sh
GNU General Public License v2.0
4.24k stars 212 forks source link

cmd+a doesnt work on azerty keyboard #638

Open Fl0rent opened 2 years ago

Fl0rent commented 2 years ago

Describe the bug on my french keyboard, so azerty, some shortcuts don't work.

if I press cmd+a it tries to close the application cmd+q closes the application, but this is normal.

cmd+z doesn't work in Libreoffice but works in Gedit

Then cmd+c and cmd+v work

Expected behavior

On a Firefox window, it seems to work well.

So I guess it's from the application mapping?

I don't really know how to fix this and help?

Install Type: Bare Metal Distro: ZORIN OS and ubuntu 21.10 DE: Gnome

rbreaves commented 2 years ago

Best place to try & resolve this in the key.py file & either on my branch of xkeysnail or upstream. If fixed upstream then let me know & I’ll cherry pick it, in general though xkeysnail probably does need multilanguage support which would give kinto multilanguage support.

https://github.com/rbreaves/xkeysnail/blob/master/xkeysnail/key.py

I don’t have any other keyboards than American & none have been donated to me either so I pretty well don’t work on or ensure multilanguage support as a result. Of course I’ll accept PRs & fixes (on the forked xkeysnail repo).

Actually not entirely true, I have a Japanese keyboard.. I’ve just been lazy on that one lol.

joshgoebel commented 2 years ago

@Fl0rent Open up evtest for your keyboard and hit a few keys and see what output you get... do the KEY_A, etc codes match with the keys you are hitting? I'd say that could help rule out language being an issue.

rbreaves commented 2 years ago

Yea, I do wonder if your language & keyboard mapping was set right as well.. but I suspect those get set and layered by xkb.. which happens on a layer above uinput.. so that might be an issue as xkeysnail might not be able to recognize the xkb remapping layer. I dunno :/

joshgoebel commented 2 years ago

but I suspect those get set and layered by xkb.. which happens on a layer above uinput.

That's the concern, yep. :-) We can't be left "out of the loop" like that...

SebCorbin commented 1 year ago

Has the same problem, went to edit sudo vim /usr/local/lib/python3.10/dist-packages/xkeysnail/key.py to swap Z with W and A with Q and so far so good, will update if I do anything more.

Also I stumbled upon this part on xkeysnail README:

In the Firefox location bar, go to about:config, search for ui.key.menuAccessKeyFocuses, and set the Value to false.

And I think it should be worth mentioning in Kinto's README as well because it's been bothering me.

Naim-Sirt commented 1 month ago

does anyone found the solution to make works cmd+A as "select all" ?