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

No matter how they're remapped, Win+L always locks Windows, and then emits configured remapping #192

Closed
riotrah opened this issue Nov 18, 2022 · 4 comments
Labels
blocked Blocked on issues outside of the reasonable control of the kanata project bug Something isn't working llhook Pertains to the standard version of Kanata on Windows windows Issue pertains to Windows only

Comments

@riotrah
Copy link

riotrah commented Nov 18, 2022

Not using interception driver (yet).

Say I've implemented capslock+L = right arrow, and then win+capslock+L therefore = win+right arrow. When I press that latter combo:

  1. (bearing in mind win+right arrow should = move active window to the right of screen)
  2. Windows will lock
  3. But after I log back in, the active window is now indeed moved to the right
  4. Sometimes if my computer is slow enough, I'll see the movement before the lock

Would interception driver help with this?
Any ideas?

@riotrah
Copy link
Author

riotrah commented Nov 19, 2022

Apologies for the issue noise @jtroo, it appears I missed the bottom part of your comment from this discussion where you'd explained some relevant details and suggested interception.

If you'd like, I could close this, keep it open with my findings for future searchers or move it to an answered discussion.

@GrewHair
Copy link

GrewHair commented Nov 19, 2022

@riotrah, FWIW, you can just disable the locking feature altogether in Windows, and then Win+L will work as expected. Check here.

I use it all the time because in i3-inspired window managers Super+L means "focus the window to the right", and I can't live without that.

When I really need to lock the screen, I just edit the registry as described in the link to enable locking again, and then hit Win+L.

You can probably script it, although I haven't tried.

@gerhard-h
Copy link
Contributor

my experience is as follows (pysical Winkey is not mapped i.e. mapped to lmet)

Hitting pysical Winkey + pysical L-key always triggers Lockscreen
but
Hitting any key mapped as Winkey + pysical L-key never triggers Lockscreen

P.S. strange enough for G-key the rule is different:
Any Winkey (mapped or pysical) + pysical G-key triggers XBox Game Bar

@jtroo jtroo added the question Further information is requested label Nov 19, 2022
@jtroo
Copy link
Owner

jtroo commented Nov 19, 2022

Yea there's unfortunately not much kanata can do on Windows about this issue, when using the default LLHOOK mechanism. Feel free to close the issue if the existing suggestions are satisfactory, or if you have any other questions, you're welcome to ask 🙂

@jtroo jtroo added bug Something isn't working blocked Blocked on issues outside of the reasonable control of the kanata project and removed question Further information is requested labels Nov 24, 2022
@jtroo jtroo added the windows Issue pertains to Windows only label Nov 29, 2022
@jtroo jtroo added the llhook Pertains to the standard version of Kanata on Windows label Aug 19, 2023
@jtroo jtroo closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked on issues outside of the reasonable control of the kanata project bug Something isn't working llhook Pertains to the standard version of Kanata on Windows windows Issue pertains to Windows only
Projects
None yet
Development

No branches or pull requests

4 participants