Hi,
am playing around with various pointer gestures. While everything seems to work :), I dont get :pointer-button (:left :shift) to do any action...
I was testing with clx_0.7.3 and mcclim-0.9.3 as well as mcclim CVS on osx and ubuntu on sbcl (of course).
So, all these are fine: (define-gesture-name :delete3 :pointer-button (:left :control)) (define-gesture-name :delete4 :pointer-button (:left :meta)) and even: (define-gesture-name :delete7 :pointer-button (:left :control :shift))
But here is nothing happening here: (define-gesture-name :delete2 :pointer-button (:left :shift))
Is this combination for some reasons impossible?
I tried tracing down this a little, but I dont think, I will actually manage, sorry.....
Thanks for any comments, Kilian
It is probably being stolen by the method that handles select/paste, which is invoked via the shift modifier. This behavior is provided by cut-and-paste-mixin, a superclass of clim-stream-pane, which is in turn a superclass of interactor and application panes.
The code responsible is the three dispatch-event methods in text-selection.lisp. If I'm right, replacing the bodies of these with (call-next-method) should cause the method to pass through to the usual gesture handling.
Ideally you could define your own pane class which excluded the cut-and-paste-mixin (or other nonstandard but typically desirable behaviors, such as mouse-wheel-scroll-mixin), but at present the class hierarchy doesn't allow it. I guess we should push these mixins down into interactor-pane and application-pane, or some new intermediate point between these and clim-stream-pane. If it's a problem for your application, arrangements can be made.
On 1/3/07, Kilian Sprotte kilian.sprotte@googlemail.com wrote:
Hi,
am playing around with various pointer gestures. While everything seems to work :), I dont get :pointer-button (:left :shift) to do any action...