On Wed, Sep 11, 2013 at 10:03 AM, Goubier Thierry <thierry.goubier@cea.fr> wrote:


Le 11/09/2013 09:49, Guillermo Polito a �crit :

Hehey! I just downloaded latest 3.0 and #bindKeyCombination: toAction:
is there (you made me doubt if I did it or not! :P)

But yes, the api for 20 is on:do: and it changed for 30 to clarify.

Me, I'm getting a bit confused in 30 about that:). It seems it has changed three times in 3.0. I've seen so far being discussed:

onKey:do:
onShortcut:do:
onKeyCombination:do:

and now:

bindKeyCombination:toAction:

Yes, we revisited the decision a couple of times :). Sorry if that made trouble...

Has on:do: been removed or deprecated in 3.0?

Not yet. As you can see if you browse latest version, you have

on: aShortcut do: anAction
^ self bindKeyCombination: aShortcut toAction: anAction�

That should be actually deprecated (to avoid people using it and confuse it with exception handling), yes...

Thierry


On Wed, Sep 11, 2013 at 9:32 AM, kilon <thekilon@yahoo.co.uk
<mailto:thekilon@yahoo.co.uk>> wrote:

� � Ah ok, no problemo I am in no hurry, and I agree its a very
� � important change
� � as it makes things a lot more readable.



� � --
� � View this message in context:
� � http://forum.world.st/How-to-bind-keyboard-shortcuts-to-messages-tp4707525p4707605.html
� � Sent from the Pharo Smalltalk Developers mailing list archive at
� � Nabble.com.



--
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