Re: [Pharo-dev] Better Interruption in 2.0
Hmm. How exactly am I supposed to reset the UserInterruptHandler? When I experimented, it was enough to just replace the method. Loading the slice in the same image does not have the same effect. So I guess I either need to quit and restart, or do something special to reset. Stephan
Le 01/07/2013 12:12, Stephan Eggermont a écrit :
Hmm. How exactly am I supposed to reset the UserInterruptHandler?
UserInterruptHandler allInstances first setInterruptKeyValue: $. asciiValue
When I experimented, it was enough to just replace the method. Loading the slice in the same image does not have the same effect. So I guess I either need to quit and restart, or do something special to reset.
Yes, there is only a singleton and no simple API to unregister an old instance and register a new one. Part of what I did is duplicating a few methods from InputEventSensor to understand the relation between the event array and keyboard and modifier states; they could be moved class-side or in the superclass (InputEventSensor). I'll put myself to systematically load this slice while waiting for integration; I'm a bit fed up of doing $ killall pharo a few times every day. Thierry
Stephan
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
participants (2)
-
Goubier Thierry -
Stephan Eggermont