#OTHER by cg
authorClaus Gittinger <cg@exept.de>
Thu, 18 Jan 2018 17:02:09 +0100
changeset 6263 8d70af79d06f
parent 6262 5b9bf7c3c828
child 6264 3b7b675cbdf8
#OTHER by cg code cleanup (beep handling)
Workspace.st
--- a/Workspace.st	Thu Jan 18 17:02:07 2018 +0100
+++ b/Workspace.st	Thu Jan 18 17:02:09 2018 +0100
@@ -2118,7 +2118,7 @@
      If the text is readOnly, do nothing."
 
     self isReadOnly ifTrue:[
-        self beep.
+        self beepInEditor.
         ^ self.
     ].
     self
@@ -2181,20 +2181,20 @@
      pasting it after the selection."
 
     self isReadOnly ifTrue:[
-	self beep.
-	^ self
+        self beepInEditor.
+        ^ self
     ].
 
     self
-	undoableDo:[
-	    self
-		do:(self selectionOrTextOfCursorLine)
-		withValueDo:[:result |
-		    self replaceSelectionBy:(result displayString "printString")
-		].
-		undoSupport actionInfo:'ReplaceIt'.
-	]
-	info:'ReplaceIt'
+        undoableDo:[
+            self
+                do:(self selectionOrTextOfCursorLine)
+                withValueDo:[:result |
+                    self replaceSelectionBy:(result displayString "printString")
+                ].
+                undoSupport actionInfo:'ReplaceIt'.
+        ]
+        info:'ReplaceIt'
 
     "Created: / 08-11-2007 / 11:31:54 / cg"
 !