ui.setmousebuttonhandlerΒΆ

nil ui.setmousebuttonhandler ( class windowclass , string button , number|nil mod , string event , the handler )

Binds the provided handler to the window event

Arguments:

  • windowclass The window class to bind
  • button The button to be handled, either "left", "middle" or "right"
  • mod The modifier combination to be associated to the handler, a combination of modifiers.Shift, modifiers.Control, modifiers.Alt
  • event The kind of event to bind, either "down", "up, "drag", "dragend" or "click"
  • handler callback function (window, x, y) to handle the event