mooz / xkeysnail

Yet another keyboard remapping tool for X environment
891 stars 112 forks source link

Problem with Shift #109

Open silintzir opened 3 years ago

silintzir commented 3 years ago

I have the following issue:

I'm trying to do some fast text selection and I was always using Alt and Shift together with left or right arrow keys to select next or previous words in the text. In a Mac, whenever I release Alt key alone to fine tune my selection on a character level by using only Shift with arrow keys this works.

This is not the case with xkeysnail. Once I release the Alt key, Shift key is automatically considered to be unpressed as well as even if I keep pressing on this key. This causes me to loose whatever text selection I have made so far.

Has anyone else the same issue?

joeyave commented 3 years ago

I have the same issue even without xkeysnail. The workaround I've found is to define such remapping:

define_keymap(None, {
    K("Shift"): K("Shift")
})

But after that I lose my other remappings.

shicks commented 3 years ago

+1, I've also seen this happening with Ctrl+Shift and releasing Ctrl while still holding Shift seems to cause any following keypresses to lose track of the fact that Shift was pressed (unless Shift is explicitly released and re-pressed).

shicks commented 3 years ago

FWIW, the other direction doesn't have this problem: releasing only Shift does not cause the Ctrl modifier to disappear.

rbika commented 2 years ago

Any updates or workarounds on this?

shicks commented 2 years ago

I'm currently using v0.4.0 and haven't noticed the issue recently.

rbika commented 2 years ago

You are right, I updated to 0.4.0 and it fixed the problem. Thanks.

joshgoebel commented 2 years ago

This issue can be closed then?

joshgoebel commented 2 years ago

Ping. @silintzir If this is fixed in 0.4.0 could you close out this issue?

yokowasis commented 2 years ago

I have the same problem. I can't fine tune the selection. without having to "re-press" the shift button.

I am using Linux Mint 21.

yokowasis commented 2 years ago

Can confirm, after updating from source, the problem is gone.

git clone --depth 1 https://github.com/mooz/xkeysnail.git
cd xkeysnail
sudo pip3 install --upgrade .