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

Overload + click emits the macro #815

Open
abgruszecki opened this issue Aug 19, 2024 · 2 comments
Open

Overload + click emits the macro #815

abgruszecki opened this issue Aug 19, 2024 · 2 comments

Comments

@abgruszecki
Copy link

keyd version: 2.4.3, on Ubuntu Noble if that makes a difference.

I have the following in my config:

leftshift = overload(shift, S-9)
rightshift = overload(shift, S-0)

Holding shift, clicking, and releasing shift emits a parenthesis. This means that I can't shift-click anymore to select text. I saw overloadt2 in the manpage, but it doesn't work for me either: the timeout is either too big and when quickly typing S-a I get (a, or the timeout is too small and I can't type the parenthesis alone.

It'd be great if overload+click did not emit the macro (or whatever the second argument is).

BTW the readme links to this doc, which seems outdated compared to the manpage. I only found out about overloadt2 when writing this issue, after grepping the repo & then looking at the manpage.

@abgruszecki
Copy link
Author

Alternatively, it'd be great if there was a way to emit the macro on release, only if there was no intervening event. This is the way that xcape works, and I believe kmonad can do the same with tap-hold: https://github.com/kmonad/kmonad/blob/master/keymap/tutorial.kbd#L816-L820.

@nsbgn
Copy link

nsbgn commented Aug 19, 2024

This means that I can't shift-click anymore to select text.

I believe this should be solved by adding your mouse to your [ids] (explicitly, not by the wildcard *). Then, the mouse click will be treated as an intervening event.

Alternatively, it'd be great if there was a way to emit the macro on release, only if there was no intervening event.

That should be how it currently works for plain overload :)

which seems outdated compared to the manpage

I can see the confusion. Probably best not to use permalinks in the README.

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