explicitly discard patseboard mouse events when not handled in universe

This commit is contained in:
Matthew Flatt 2010-11-09 10:35:06 -07:00
parent dd9ab8f2a4
commit 7ff8ce61db

View File

@ -157,7 +157,14 @@
(pkey e:str))))))))
(define/private (deal-with-mouse %)
(if (not on-mouse) %
(if (not on-mouse)
;; No mouse handler => discard mouse events (so snip are not selected
;; in the pasteboard, for example
(class %
(super-new)
(define/override (on-event e)
(void)))
;; Mouse handler => handle mouse events
(class %
(super-new)
(define/override (on-event e)