keyd icon indicating copy to clipboard operation
keyd copied to clipboard

Overload + click emits the macro

Open abgruszecki opened this issue 1 year ago • 2 comments

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 avatar Aug 19 '24 06:08 abgruszecki

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.

abgruszecki avatar Aug 19 '24 06:08 abgruszecki

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.

nsbgn avatar Aug 19 '24 15:08 nsbgn

This should now produce the expected behaviour on master.

rvaiya avatar Jan 12 '25 07:01 rvaiya