dual-key-remap icon indicating copy to clipboard operation
dual-key-remap copied to clipboard

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

Open haoadoreorange opened this issue 2 years ago • 2 comments

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

haoadoreorange avatar Dec 07 '22 23:12 haoadoreorange

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: @.***>

ililim avatar Dec 10 '22 04:12 ililim

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

haoadoreorange avatar Dec 19 '22 15:12 haoadoreorange