Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

combo with ALT gets blocked #107

Closed
kbilsted opened this issue Mar 15, 2024 · 5 comments
Closed

combo with ALT gets blocked #107

kbilsted opened this issue Mar 15, 2024 · 5 comments

Comments

@kbilsted
Copy link

kbilsted commented Mar 15, 2024

The documentation states you can make a combo with ALT like [&...]

[CONFIG_1]
OPTION debug
OPTION configName smartnavi

COMBO  J   [&...] > key(LEFT)  
COMBO  I   [&...] > key(UP)  
COMBO  K   [&...] > key(DOWN)  
COMBO  L   [&...] > key(RIGHT)  

does not work it is getting blocked somehow

 [25 0=                Kv ] [M:   8 T:     D:      ]   --> SEQUENCE (2)   {RIGHTv #2} {RIGHT^ #1}
 [25 1=                K^ ] [M:   8 T:     D:      ]   --> {blocked K UP: was not down.} (tap)
 [25 0=                Kv ] [M:   8 T:     D:      ]   --> SEQUENCE (2)   {RIGHTv #2} {RIGHT^ #1}
 [25 1=                K^ ] [M:   8 T:     D:      ]   --> {blocked K UP: was not down.} (tap)
 [17 0=                Iv ] [M:   8 T:     D:      ]   --> SEQUENCE (2)   {UPv #2} {UP^ #1}
 [17 1=                I^ ] [M:   8 T:     D:      ]   --> {blocked I UP: was not down.} (tap)
 [17 0=                Iv ] [M:   8 T:     D:      ]   --> SEQUENCE (2)   {UPv #2} {UP^ #1}
 [17 1=                I^ ] [M:   8 T:     D:      ]   --> {blocked I UP: was not down.} (tap)
 [25 0=                Kv ] [M:   8 T:     D:      ]   --> SEQUENCE (2)   {RIGHTv #2} {RIGHT^ #1}
 [25 1=                K^ ] [M:   8 T:     D:      ]   --> {blocked K UP: was not down.} (tap)
 [24 0=                Jv ] [M:   8 T:     D:      ]   --> SEQUENCE (2)   {LEFTv #2} {LEFT^ #1}
 [26 0=                Lv ] [M:   8 T:     D:      ]   --> {Lv #2}
 [24 1=                J^ ] [M:   8 T:     D:      ]   --> {blocked J UP: was not down.}
 [26 1=                L^ ] [M:   8 T:     D:      ]   --> {L^ #1}
 [38 1=             LALT^ ] [M:     T:     D:      ]   --> {LALT^ #0}                                        

If I instead rewire to a modifier it works

REWIRE LALT    MOD15

COMBO  J   [.&.. .... .... ....] > key(LEFT)  
 [38 1=  LALT >    MOD15^ ] [M:     T:     D:      ]   --  MOD15^
 [38 0=  LALT >    MOD15v ] [M:4000 T:     D:      ]   --  MOD15v
 [17 0=                Iv ] [M:4000 T:     D:      ]   --> {Iv #1}
 [17 1=                I^ ] [M:4000 T:     D:      ]   --> {I^ #0} (tap)
 [38 1=  LALT >    MOD15^ ] [M:     T:     D:      ]   --  MOD15^           

but now ALT-TAB no longer work. I'm not sure how to COMBO ALT-TAB since windows has a different behaviour between switching or holding down ALT-TAB release TAB and using cursor keys with ALT still held.

@kbilsted kbilsted changed the title combo with ALT combo with ALT gets blocked Mar 15, 2024
@cajhin
Copy link
Owner

cajhin commented Mar 19, 2024

your log misses the crucial first line: LALTv --> LALTv

As soon as you press the unmodified LALT, this LALT down is sent to Windows. The following cursor keys that are sent are (as Windows sees it) ALT+Cursor combos, which doesn't work.

Releasing LALT first before sending the cursor doesn't work right either, because then Windows sees an "Alt tapped" which activates the current menu (and other thing).

The way I do it is:

REWIRE LALT MOD9 // LALT
COMBO  J   [...& .... ....] > key(LEFT)

Now Alt is a virtual modifier that does not interact with Windows at all. When I need the real ALT (which is not very often), I either use right ALT, or I can tap+hold the left ALT (press alt, release alt, press alt, then press another key like TAB)

@kbilsted
Copy link
Author

I've tried other keymapping projects and at least one of them handles the ALT much better

@kbilsted kbilsted closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
@cajhin
Copy link
Owner

cajhin commented Mar 19, 2024 via email

@kbilsted
Copy link
Author

@Aadam-Marshall
Copy link

Aadam-Marshall commented May 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants