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

The Wildcard _ do not capture click #48

Open
czhang03 opened this issue Jan 31, 2024 · 1 comment
Open

The Wildcard _ do not capture click #48

czhang03 opened this issue Jan 31, 2024 · 1 comment

Comments

@czhang03
Copy link
Contributor

czhang03 commented Jan 31, 2024

My use case is mainly using caplock as control, and use control + h j k l to send arrow keys.
So I use caplock and control to toggle a cursor movement layer, which includes the mapping for h j k l, and use wildcard to capture the rest.

However, now my control + click no longer works, since it is in the cursor movement layer.


I think we can add a passThroughAs field, like passThroughAs: ctrl.
In the background, we will simply send the control key when the layer is activated. Until a key is pressed, then we will resolve whether that key mapped to another action in the current layer:

  • if it is mapped to another key, release the control key and send the action.
  • if it is not mapped to another key, send the key press.
@jbensmann
Copy link
Owner

Yeah the problem is that mouseless does not handle mouse events, so the wildcard does not apply to them.
But your suggestion sounds good, I will have a look at it.

Until then you could map an unused key in the cursor movement layer (or some other layer) to ctrl, but of course it is not the most comfortable having to press two keys for control.

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

2 participants