kll-spec icon indicating copy to clipboard operation
kll-spec copied to clipboard

Modifier Keys issue

Open wpc009 opened this issue 8 years ago • 2 comments

I don't know if this is the right place for this issue. Anyway. It seems that Macro in current KLL spec treat the modifier key as the plain keys .

  1. If I pressed one modifier key, let's say RShift, then trigger a macro with a LShift in it's result.
  2. Do not release the RShift key.
  3. at the end of macro it will send a LShift release event to host, which cause the "shift" flag changed on host. But the 'RShift' is still pressed.

The ideal way should be before macro execute, check the current modifier key status, if it's result contains a modifier key and that key has already active, than ignore the modifier key in result. let's user to release that modifier key manually. I think this way is better.

wpc009 avatar Sep 07 '16 04:09 wpc009

Hmm.

But what if you really wanted LShift not just "Shift"? And didn't care that RShift was being held.

This does make sense for the single quote macros though. Where you are trying to enter text. I'm thinking about changing how single quote macros work for KLL 0.6 anyways.

haata avatar Sep 09 '16 05:09 haata

In that case, it should recover the modifier flag at the end of the macro result. I'm holding shift, but the keyboard behave like I'm not. This is confusing.

wpc009 avatar Sep 15 '16 14:09 wpc009