ยค doubleClickF

Types

doubleClickF :: Time -> F a b -> F a b

Synopsis

doubleClickF timeout fudget

Description

doubleClickF preprocesses the lowlevel input stream of a fudget to detect and make it easier to deal with double clicks.

When two or more MouseButton{type'=Pressed,...} events occur within the specified timeout, the latter ones are converted into MouseButton{type'=MultiClick n,...} where n indicates how many times the mouse button was pressed.

Arguments

timeout :: Time
doubleclick timeout in milliseconds, e.g. 400.
fudget :: F a b
a fudget that reacts to mouse clicks.

See Also

Event types: Pressed, XEvent.

Fudgets that use doubleClickF: textF.