Skip to content
2 changes: 1 addition & 1 deletion plugin/mouse/mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,4 @@ def noise_trigger_pop():
)

if should_click:
ctrl.mouse_click(button=0, hold=16000)
actions.mouse_click(0)
20 changes: 20 additions & 0 deletions plugin/mouse/mouse_long_click.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from talon import Context, Module, ctrl

mod = Module()

mod.tag(
"mouse_long_click",
desc="Tag for enabling long click behavior",
)

ctx = Context()
ctx.matches = r"""
tag: user.mouse_long_click
"""


@ctx.action_class("main")
class MainActions:
@staticmethod
def mouse_click(button: int = 0):
ctrl.mouse_click(button=button, hold=16000)