Fix alt-click and control-click to simulate middle and right mouse button clicks
parent
0b8cbc7d67
commit
fa56d2849b
|
@ -117,12 +117,14 @@ PREDICATE: specific-drag < drag #>> ;
|
||||||
clone f >># button-gesture ;
|
clone f >># button-gesture ;
|
||||||
|
|
||||||
M: world handle-gesture ( gesture gadget -- ? )
|
M: world handle-gesture ( gesture gadget -- ? )
|
||||||
{
|
2dup call-next-method [
|
||||||
{ [ over specific-button-up? ] [ drop generalize-gesture t ] }
|
{
|
||||||
{ [ over specific-button-down? ] [ drop generalize-gesture t ] }
|
{ [ over specific-button-up? ] [ drop generalize-gesture f ] }
|
||||||
{ [ over specific-drag? ] [ drop generalize-gesture t ] }
|
{ [ over specific-button-down? ] [ drop generalize-gesture f ] }
|
||||||
[ call-next-method ]
|
{ [ over specific-drag? ] [ drop generalize-gesture f ] }
|
||||||
} cond ;
|
[ 2drop t ]
|
||||||
|
} cond
|
||||||
|
] [ 2drop f ] if ;
|
||||||
|
|
||||||
: close-global ( world global -- )
|
: close-global ( world global -- )
|
||||||
dup get-global find-world rot eq?
|
dup get-global find-world rot eq?
|
||||||
|
|
Loading…
Reference in New Issue