in Pharo I would like it to Object>>halt stop only when shift is pressed so that I don't break my image. How to do it?
Object>>halt
So, for example, I would like to add self halt. in Array>>add: without losing images.
self halt.
Array>>add:
Object>>haltifShiftPressed Sensor leftShiftDown ifTrue: [self halt].
Cool, this textbox can syntactically highlight Smalltalk-code
self haltIf: [Sensor shiftPressed]
Now I will do the following: Merging Oscar and Richard solutions:
Object>>h self haltIf: [Sensor shiftPressed]