shiftPress only relevant with button-1
authorClaus Gittinger <cg@exept.de>
Wed, 09 Jun 2004 11:43:24 +0200
changeset 2992 da91dbfd5676
parent 2991 f8ba5fe56ea6
child 2993 5a610fe081ed
shiftPress only relevant with button-1 (for shifted-menu support)
TextView.st
--- a/TextView.st	Tue Jun 08 20:10:20 2004 +0200
+++ b/TextView.st	Wed Jun 09 11:43:24 2004 +0200
@@ -1285,14 +1285,14 @@
     dragIsActive := false.
     sensor       := self sensor.
 
-    sensor shiftDown ifTrue:[
-        "mouse-click with shift - adding to selection"
-
-        "very simple - just simulate a move"
-        ^ self buttonMotion:(device button1MotionMask) x:x y:y
-    ].
-
     ((button == 1) or:[button == #select]) ifTrue:[
+        sensor shiftDown ifTrue:[
+            "mouse-click with shift - adding to selection"
+
+            "very simple - just simulate a move"
+            ^ self buttonMotion:(device button1MotionMask) x:x y:y
+        ].
+
         clickVisibleLine := self visibleLineOfY:y.
         clickPos := x @ y.
         clickCol := self colOfX:x inVisibleLine:clickVisibleLine.
@@ -3834,7 +3834,7 @@
 !TextView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.244 2004-03-15 16:45:23 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/TextView.st,v 1.245 2004-06-09 09:43:24 cg Exp $'
 ! !
 
 TextView initialize!