ililim / dual-key-remap

Remap any key to any other two keys on Windows 🔥. Remap CapsLock to both Ctrl and Escape! (It's like xcape for windows!)
GNU General Public License v2.0
499 stars 36 forks source link

Stucked Caplocks with no way to disable while dual-key-map is running #58

Open haoadoreorange opened 1 year ago

haoadoreorange commented 1 year ago

Hello,

I use PowerToys to map some shortcuts to Ctrl+keys and then use this to have my Capslock works as Ctrl. Once in a while I find my Capslock activated (not sure why, probably some interfering with PowerToys??) with no way to disable it, because Capslock now is just a Ctrl.

I have to open Task Manager, force quit dual-key-remap, disable Capslock and only then rerun it, the whole process is quite cumbersome.

I tried AHK to map Shift to disable Capslock without success.

Shift::SetCapsLockState, Off

If key-dual-map is running then this script wouldn't work, Shift just behaves a little bit like Esc (which is weird), seems like key-dual-map runs at a lower level and somehow mess with AHK SetCapsLockState.

Do you know any workaround at the moment ?

EDIT: typo

ililim commented 1 year ago

This is an interesting problem, I can investigate this.

In the meantime as a workaround, I recommend remapping capslock to escape via registry (e.g. with a tool like SharpKeys) and then use dual-key-remap to remap esc = esc when alone, ctrl when with other.

On Wed, Dec 7, 2022 at 6:41 PM haoadoreorange @.***> wrote:

Hello,

I use PowerToys to map some shortcuts to Ctrl+keys and then use this to have my Capslock works as Ctrl. Once in a while I find my Capslock activated (not sure why, probably some interfering with PowerToys??) with no way to disable it, because Capslock now is just a Ctrl.

I have to open Task Manager, force quit dual-key-remap, disable Capslock and only then rerun it, the whole process is quite cumbersome.

I tried AHK to map Shift to disable Capslock without success.

Shift::SetCapsLockState, Off

If key-dual-map is running then this script wouldn't work, Shift just behaves a little bit like Esc (which is weird), seems like key-dual-map works at a lower level and somehow mess with AHK SetCapsLockState

Do you know any workaround at the moment ?

— Reply to this email directly, view it on GitHub https://github.com/ililim/dual-key-remap/issues/58, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSXCNPSAJGLE65KK5QXAJDWMEOCHANCNFSM6AAAAAASXOBFN4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

haoadoreorange commented 1 year ago

Thanks ! the workaround does work wonderfully 💯 When I have some time I'll try to look into this bug too, so keep me in touch if you find anything :D