zmk icon indicating copy to clipboard operation
zmk copied to clipboard

Bug? LA(RIGHT) !== Alt + RightArrow

Open arabshapt opened this issue 3 years ago • 6 comments

I have a shortcut for "go back"/"go forward" in browser. LA(RIGHT or RIGHT_ARROW) on certain pages(e.g. theverge.com) focuses on three dots of chrome browser and MS Edge (menu button) as though I clicked f10. This is happening on windows 10 and 11. I didn't test on any other OS. I am using Kinesis 360 Pro. Is there any other way to do Alt + Arrow other than LA(Right)?

Again: It does go back and forward with LA(LEFT) and LA(RIGHT), but also focuses on the menu three dots...

Just hitting alt+(right or left) never has this behavior and works as expected.

The problem is that I have to then click escape(to unfocus from menu) before using Vimium to e.g. scroll on the page.

arabshapt avatar Oct 30 '22 09:10 arabshapt

as though I clicked f10

The Alt sets the focus there too if no other key is pressed iirc.

Maybe you try the keycodes K_BACK and K_FORWARD.

auipga avatar Nov 29 '22 06:11 auipga

Thank you for your suggestion) I will try that. Yes, Alt on its own does that, but LA(RIGHT) should(or I expected) not set focus anywhere... When I do it manually with two keys on my keyboard, it doesn't change focus. At the moment I am using hyperkey(left_arrow) and I remap it to Alt Left in windows powertoys and works great, but of course it would be better to be able to do it without external apps.

arabshapt avatar Dec 03 '22 14:12 arabshapt

Just a guess: Did you wrap &kp LA(RIGHT) into something else like a macro or encoder?

auipga avatar Dec 05 '22 07:12 auipga

I'm having an issue which might be the same as this one. Or at least there's some coincidence. I have a shortcut &kp LG(RIGHT) which, after producing a WIN + RIGHT combination, it opens windows menu. I guess it's triggering an extra WIN press after the intended key combination.

The same happens with all other arrows instead of RIGHT. I have no clue on what could be happening (I'm fairly new to ZMK), but I did try usb logging which I could upload if you think it is worth it.

Eryx5502 avatar Dec 06 '22 11:12 Eryx5502

As a workaround, I've been able to get WIN + RIGHT (and the other arrows) usign a macro which first presses the LGUI key, then taps the arrow and then releases the LGUI.

I still don't know why LG(RIGHT) won't work as expected, but at least I can produce WIN + RIGHT.

Eryx5502 avatar Dec 12 '22 07:12 Eryx5502

I am also facing the behavior while binding LG(). It always fires an extra GUI. I cannot observe the same, binding other keys with the LG modifier function.

jangraefen avatar May 31 '25 21:05 jangraefen

I have the same issue as jangraefen and Eryx5502 with these keycodes: &kp LG(LEFT_ARROW) &kp LG(RIGHT_ARROW)

However, these work fine: &kp LG(DOWN_ARROW) &kp LG(UP_ARROW)

krFritsch avatar Aug 22 '25 14:08 krFritsch

For future readers, check out this issue and caksoylar's reply: https://github.com/zmkfirmware/zmk/issues/2905

Enabling CONFIG_ZMK_HID_SEPARATE_MOD_RELEASE_REPORT did the trick for me.

krFritsch avatar Aug 23 '25 20:08 krFritsch

Closing as a resolution was found. If this issue reappears and the solution is not working, please feel free to reopen.

nmunnich avatar Aug 23 '25 20:08 nmunnich