#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Tue, 16 Jan 2018 18:19:16 +0100
changeset 5671 511ca27ab8d6
parent 5670 9aea34629aea
child 5672 f54387a10583
#DOCUMENTATION by cg class: ImageEditView changed: #keyboardZoom:
ImageEditView.st
--- a/ImageEditView.st	Tue Jan 16 18:15:49 2018 +0100
+++ b/ImageEditView.st	Tue Jan 16 18:19:16 2018 +0100
@@ -1070,11 +1070,12 @@
 !
 
 keyboardZoom:largerBoolean
-    largerBoolean ifTrue:[
-        self magnification: ((magnification + 1) min:63)
-    ] ifFalse:[
-        self magnification: ((magnification - 1) max:1)
-    ].    
+    "CTRL+/- zoom action"
+
+    self magnification:(
+        largerBoolean 
+            ifTrue:[(magnification + 1) min:63]
+            ifFalse:[(magnification - 1) max:1])
 !
 
 pointerLeave:state